aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/form/CheckBoxInput.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/form/CheckBoxInput.kt')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/CheckBoxInput.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/CheckBoxInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/CheckBoxInput.kt
index 1893668b..44383629 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/CheckBoxInput.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/CheckBoxInput.kt
@@ -52,13 +52,13 @@ open class CheckBoxInput(override var value: Boolean = false,
val sn = super.getSnAttrs().toMutableList()
sn.add("type" to "checkbox")
if (startValue) {
- sn.add("checked" to "checked")
+ sn.add("checked" to "true")
}
name?.let {
sn.add("name" to it)
}
if (disabled) {
- sn.add("disabled" to "disabled")
+ sn.add("disabled" to "true")
}
return sn
}