diff options
author | Robert Jaros <rjaros@finn.pl> | 2020-02-09 22:53:12 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2020-02-09 22:53:12 +0100 |
commit | 069b1a1fbf51b7cd5ff82cbdc676f477fc4a3976 (patch) | |
tree | 52c214818e539638ea689acd8de93fb4836c4877 /src/main/kotlin/pl | |
parent | 8dc78d8725e4af290aa99fc943e695b3220777a9 (diff) | |
download | kvision-069b1a1fbf51b7cd5ff82cbdc676f477fc4a3976.tar.gz kvision-069b1a1fbf51b7cd5ff82cbdc676f477fc4a3976.tar.bz2 kvision-069b1a1fbf51b7cd5ff82cbdc676f477fc4a3976.zip |
Disallow null value for RangeInput
Diffstat (limited to 'src/main/kotlin/pl')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/range/RangeInput.kt | 3 |
1 files changed, 2 insertions, 1 deletions
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 } /** |