diff options
author | Robert Jaros <rjaros@finn.pl> | 2017-10-19 13:00:36 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2017-10-19 13:00:36 +0200 |
commit | 94d1930aaf160d7271aabe97bf167a911391210b (patch) | |
tree | 677bde7437bf8aa4f163fc31ed91f3be7f8ec913 /src/main/kotlin/pl/treksoft/kvision/form | |
parent | a043a16a6e9a192e2760d9b43197a9383b7790c2 (diff) | |
download | kvision-94d1930aaf160d7271aabe97bf167a911391210b.tar.gz kvision-94d1930aaf160d7271aabe97bf167a911391210b.tar.bz2 kvision-94d1930aaf160d7271aabe97bf167a911391210b.zip |
Unit tests
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/form')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/CheckBoxInput.kt | 4 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/TextInput.kt | 2 |
2 files changed, 3 insertions, 3 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 } diff --git a/src/main/kotlin/pl/treksoft/kvision/form/TextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/TextInput.kt index a87cb164..08a39e87 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/TextInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/TextInput.kt @@ -118,7 +118,7 @@ class TextInput(type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, placeholder: String? = } } if (disabled) { - sn.add("disabled" to "disabled") + sn.add("disabled" to "true") } return sn } |