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/upload/UploadInput.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kvision-modules/kvision-upload/src/main/kotlin/pl/treksoft') diff --git a/kvision-modules/kvision-upload/src/main/kotlin/pl/treksoft/kvision/form/upload/UploadInput.kt b/kvision-modules/kvision-upload/src/main/kotlin/pl/treksoft/kvision/form/upload/UploadInput.kt index ee17949e..a250df42 100644 --- a/kvision-modules/kvision-upload/src/main/kotlin/pl/treksoft/kvision/form/upload/UploadInput.kt +++ b/kvision-modules/kvision-upload/src/main/kotlin/pl/treksoft/kvision/form/upload/UploadInput.kt @@ -138,6 +138,10 @@ open class UploadInput(uploadUrl: String? = null, multiple: Boolean = false, cla private val nativeFiles: MutableMap = mutableMapOf() + init { + this.vnkey = "kv_uploadinput_${counter++}" + } + override fun render(): VNode { return render("input") } -- cgit