aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-select/src/main/kotlin/pl/treksoft/kvision
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-01-16 18:29:08 +0100
committerRobert Jaros <rjaros@finn.pl>2019-01-16 18:29:08 +0100
commitd949053896fd832b4d45e1ca57de802000674767 (patch)
tree5cac71a284332f5abcbc36c59a957d9a3e9732f1 /kvision-modules/kvision-select/src/main/kotlin/pl/treksoft/kvision
parentec61850780cac4e84826aca95a14d8010813b13a (diff)
downloadkvision-d949053896fd832b4d45e1ca57de802000674767.tar.gz
kvision-d949053896fd832b4d45e1ca57de802000674767.tar.bz2
kvision-d949053896fd832b4d45e1ca57de802000674767.zip
Fix for multiple selection.
Diffstat (limited to 'kvision-modules/kvision-select/src/main/kotlin/pl/treksoft/kvision')
-rw-r--r--kvision-modules/kvision-select/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt2
1 files changed, 1 insertions, 1 deletions
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<String>
if (arr != null && arr.isNotEmpty()) {
- arr.joinToString()
+ arr.filter { it.isNotEmpty() }.joinToString(",")
} else {
null
}