diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-10-06 20:38:07 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-10-06 20:38:07 +0200 |
commit | 6b14906f0e35dc522bd1c1a44682d728315cf619 (patch) | |
tree | 4f96d1c3bb8281289b96e2b11eecc404a3c98788 /kvision-modules/kvision-bootstrap-datetime/src/main/kotlin/pl | |
parent | 6ddb5374d4f1f629c98392e104460351065eaa7c (diff) | |
download | kvision-6b14906f0e35dc522bd1c1a44682d728315cf619.tar.gz kvision-6b14906f0e35dc522bd1c1a44682d728315cf619.tar.bz2 kvision-6b14906f0e35dc522bd1c1a44682d728315cf619.zip |
Update all tests.
Diffstat (limited to 'kvision-modules/kvision-bootstrap-datetime/src/main/kotlin/pl')
-rw-r--r-- | kvision-modules/kvision-bootstrap-datetime/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kvision-modules/kvision-bootstrap-datetime/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt b/kvision-modules/kvision-bootstrap-datetime/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt index e0da98f8..626346b1 100644 --- a/kvision-modules/kvision-bootstrap-datetime/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt +++ b/kvision-modules/kvision-bootstrap-datetime/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt @@ -241,7 +241,8 @@ open class DateTimeInput( override fun afterDestroy() { if (initialized) { - getElementJQueryD()?.data("DateTimePicker").destroy() + val comp = getElementJQueryD()?.data("DateTimePicker") + if (comp != null) comp.destroy() initialized = false } } |