aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/core/Widget.kt12
1 files changed, 12 insertions, 0 deletions
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<String> = 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