From f244cb90b6ca7191ba570d70195669d7ca114d77 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 20 Dec 2018 16:19:04 +0100 Subject: New module with Select component tailored for server-side connectivity --- src/main/kotlin/pl/treksoft/kvision/core/Widget.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt b/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt index 9f28c52c..82a3db48 100644 --- a/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt +++ b/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt @@ -283,6 +283,18 @@ open class Widget(classes: Set = setOf()) : StyledComponent() { } } } + if (internalHandlers.shownBsSelect != null) { + if (handlers.shownBsSelect == null) { + handlers.shownBsSelect = internalHandlers.shownBsSelect + } else { + val intc = internalHandlers.shownBsSelect + val c = handlers.shownBsSelect + handlers.shownBsSelect = { e -> + intc?.invoke(e) + c?.invoke(e) + } + } + } handlers } else { null -- cgit