diff options
author | Robert Jaros <rjaros@finn.pl> | 2020-02-26 23:12:48 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2020-02-26 23:12:48 +0100 |
commit | 450d3d259cd3253f7cda8ab4baffb0a6d070d596 (patch) | |
tree | 25ff42e5e9e7d683ce5395fdd7159ed85244b1a3 /kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/dropdown | |
parent | 94f36f212a60654571728a1f34701d95453efc22 (diff) | |
download | kvision-450d3d259cd3253f7cda8ab4baffb0a6d070d596.tar.gz kvision-450d3d259cd3253f7cda8ab4baffb0a6d070d596.tar.bz2 kvision-450d3d259cd3253f7cda8ab4baffb0a6d070d596.zip |
Major changes in the event handling architecture. Support for multiple event handlers.
Diffstat (limited to 'kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/dropdown')
-rw-r--r-- | kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt b/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt index a7f8992a..3fa6cd36 100644 --- a/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt +++ b/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt @@ -28,7 +28,6 @@ import pl.treksoft.kvision.core.CssSize import pl.treksoft.kvision.core.ResString import pl.treksoft.kvision.core.StringBoolPair import pl.treksoft.kvision.core.StringPair -import pl.treksoft.kvision.core.onEvent import pl.treksoft.kvision.html.Button import pl.treksoft.kvision.html.ButtonStyle import pl.treksoft.kvision.html.ButtonType @@ -356,7 +355,7 @@ internal class DropDownButton( init { this.id = id if (!forNavbar && !forDropDown) this.role = "button" - onEvent { + setInternalEventListener<DropDownButton> { click = { e -> if (parent?.parent is ContextMenu) { e.asDynamic().dropDownCM = true |