File tree 3 files changed +6
-5
lines changed
client/src/main/scala/com/gshakhn/privatewiki/client/components 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ val commonSettings = Seq(
19
19
val sprayVersion = " 1.3.3"
20
20
val upickleVersion = " 0.3.9"
21
21
val scalatagsVersion = " 0.5.4"
22
- val scalajsReactVersion = " 0.10.4 "
23
- val reactVersion = " 0.14.3 "
22
+ val scalajsReactVersion = " 0.11.0 "
23
+ val reactVersion = " 15.0.1 "
24
24
val bootstrapVersion = " 3.3.6"
25
25
26
26
val shared = crossProject.in(file(" ." )).settings(commonSettings:_* )
Original file line number Diff line number Diff line change @@ -20,11 +20,12 @@ object BinderLoader {
20
20
21
21
class Backend ($ : BackendScope [Props , State ])(implicit executionContext : ExecutionContext ) {
22
22
def updateBinderName (e : ReactEventI ): Callback = {
23
- $.modState(s => s.copy(binderName = e.target.value))
23
+ e.extract(_.target.value){binderName => $.modState(s => s.copy(binderName = binderName))}
24
+
24
25
}
25
26
26
27
def updateBinderPassword (e : ReactEventI ): Callback = {
27
- $.modState(s => s.copy(binderPassword = e.target.value))
28
+ e.extract(_.target.value){binderPassword => $.modState(s => s.copy(binderPassword = binderPassword))}
28
29
}
29
30
30
31
def loadBinder (e : ReactEventI ): Callback = {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ object PaperPicker {
29
29
}
30
30
31
31
def updateSearch (e : ReactEventI ): Callback = {
32
- $.modState(s => s.copy(searchText = e.target.value))
32
+ e.extract(_.target.value){searchText => $.modState(s => s.copy(searchText = searchText))}
33
33
}
34
34
35
35
def papers (props : Props , state : State ): Seq [(Binder , Paper )] = {
You can’t perform that action at this time.
0 commit comments