aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/panel
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/panel')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt b/src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt
index ae8360b5..f620f2b0 100644
--- a/src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt
@@ -160,6 +160,7 @@ open class TabPanel(
click = { e ->
val actIndex = this@TabPanel.content.children.indexOf(childrenMap[currentIndex])
e.asDynamic().data = actIndex
+ @Suppress("UnsafeCastFromDynamic")
if (this@TabPanel.dispatchEvent(
"tabClosing",
obj { detail = e; cancelable = true }) != false