aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/range/RangeInput.kt3
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
}
/**