From 069b1a1fbf51b7cd5ff82cbdc676f477fc4a3976 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 9 Feb 2020 22:53:12 +0100 Subject: Disallow null value for RangeInput --- src/main/kotlin/pl/treksoft/kvision/form/range/RangeInput.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/kotlin/pl/treksoft/kvision/form/range/RangeInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/range/RangeInput.kt index 5ad854d0..dc9ad7d4 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/range/RangeInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/range/RangeInput.kt @@ -182,7 +182,8 @@ open class RangeInput( protected open fun refreshState() { value?.let { getElementJQuery()?.`val`(it) - } ?: getElementJQueryD()?.`val`(min) + } + if (value == null) value = min } /** -- cgit