From 833390a649c633892fbc0d9b6e37d6f7913cabb1 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Wed, 24 Apr 2019 20:13:17 +0200 Subject: Fix various problems with re-creating DOM nodes. --- .../src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kvision-modules/kvision-select/src/main/kotlin/pl/treksoft/kvision') diff --git a/kvision-modules/kvision-select/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt b/kvision-modules/kvision-select/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt index e89d4f5e..7ffdf2c2 100644 --- a/kvision-modules/kvision-select/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt +++ b/kvision-modules/kvision-select/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt @@ -130,6 +130,7 @@ open class SelectInput( override var size: InputSize? by refreshOnUpdate() init { + this.vnkey = "kv_selectinput_${counter++}" setChildrenFromOptions() this.setInternalEventListener { change = { @@ -348,6 +349,8 @@ open class SelectInput( } companion object { + internal var counter = 0 + /** * DSL builder extension function. * -- cgit