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/check/CheckInput.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/kotlin/pl/treksoft/kvision/form/check') diff --git a/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt index b5c3ead0..f93fd436 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt @@ -26,7 +26,6 @@ import org.w3c.dom.events.MouseEvent import pl.treksoft.kvision.core.StringBoolPair import pl.treksoft.kvision.core.StringPair import pl.treksoft.kvision.core.Widget -import pl.treksoft.kvision.core.onEvent import pl.treksoft.kvision.form.FormInput import pl.treksoft.kvision.form.InputSize import pl.treksoft.kvision.form.ValidationStatus @@ -53,7 +52,7 @@ abstract class CheckInput( ) : Widget(classes), FormInput { init { - this.onEvent { + this.setInternalEventListener { click = { val v = getElementJQuery()?.prop("checked") as Boolean? self.value = (v == true) -- cgit