From 08eeaf0fd324b11e291a585f239603c3ee7e655e Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Sun, 5 Jan 2020 18:20:26 +0100 Subject: WIP ChooseNameForm fix --- .../org/luxons/sevenwonders/ui/components/home/ChooseNameForm.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sw-ui-kt/src/main') diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/ChooseNameForm.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/ChooseNameForm.kt index 11f52529..a5cb9538 100644 --- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/ChooseNameForm.kt +++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/ChooseNameForm.kt @@ -5,6 +5,7 @@ import kotlinx.html.js.onChangeFunction import kotlinx.html.js.onSubmitFunction import org.luxons.sevenwonders.ui.redux.RequestChooseName import org.luxons.sevenwonders.ui.redux.connectDispatch +import org.w3c.dom.HTMLInputElement import react.RBuilder import react.RClass import react.RComponent @@ -31,8 +32,9 @@ private class ChooseNameForm(props: ChooseNameFormProps): RComponent + val input = e.currentTarget as HTMLInputElement + setState(transformState = { ChooseNameFormState(input.value) }) } } } -- cgit