aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-datetime/src/main/kotlin/pl/treksoft
diff options
context:
space:
mode:
Diffstat (limited to 'kvision-modules/kvision-datetime/src/main/kotlin/pl/treksoft')
-rw-r--r--kvision-modules/kvision-datetime/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvision-modules/kvision-datetime/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt b/kvision-modules/kvision-datetime/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt
index 8de8d088..a375ef35 100644
--- a/kvision-modules/kvision-datetime/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt
+++ b/kvision-modules/kvision-datetime/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt
@@ -260,12 +260,15 @@ open class DateTimeInput(
private fun initEventHandlers() {
this.getElementJQuery()?.on("changeDate") { e, _ ->
+ @Suppress("UnsafeCastFromDynamic")
this.dispatchEvent("change", obj { detail = e })
}
this.getElementJQuery()?.on("show") { e, _ ->
+ @Suppress("UnsafeCastFromDynamic")
this.dispatchEvent("showBsDateTime", obj { detail = e })
}
this.getElementJQuery()?.on("hide") { e, _ ->
+ @Suppress("UnsafeCastFromDynamic")
this.dispatchEvent("hideBsDateTime", obj { detail = e })
}
}