From 450d3d259cd3253f7cda8ab4baffb0a6d070d596 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Wed, 26 Feb 2020 23:12:48 +0100 Subject: Major changes in the event handling architecture. Support for multiple event handlers. --- .../src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kvision-modules/kvision-bootstrap-select/src/main/kotlin') diff --git a/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt b/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt index a96e614e..01b35ed2 100644 --- a/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt +++ b/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt @@ -28,7 +28,6 @@ import pl.treksoft.kvision.core.Container import pl.treksoft.kvision.core.CssSize import pl.treksoft.kvision.core.StringBoolPair import pl.treksoft.kvision.core.StringPair -import pl.treksoft.kvision.core.onEvent import pl.treksoft.kvision.form.FormInput import pl.treksoft.kvision.form.InputSize import pl.treksoft.kvision.form.ValidationStatus @@ -150,7 +149,7 @@ open class SelectInput( init { setChildrenFromOptions() - this.onEvent { + this.setInternalEventListener { change = { val v = getElementJQuery()?.`val`() self.value = v?.let { @@ -312,7 +311,8 @@ open class SelectInput( SelectDropdownAlign.AUTO -> { sn.add("data-dropdown-align-right" to "auto") } - else -> {} + else -> { + } } return sn } -- cgit