From d949053896fd832b4d45e1ca57de802000674767 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Wed, 16 Jan 2019 18:29:08 +0100 Subject: Fix for multiple selection. --- .../src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvision-modules/kvision-select/src') 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 27cbb1f0..e89d4f5e 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 @@ -146,7 +146,7 @@ open class SelectInput( @Suppress("UNCHECKED_CAST") val arr = v as? Array if (arr != null && arr.isNotEmpty()) { - arr.joinToString() + arr.filter { it.isNotEmpty() }.joinToString(",") } else { null } -- cgit