Skip to content

Commit 4574e1e

Browse files
author
Dmitry Kuzin (DevExpress)
committed
Fix #150
1 parent 92b53b5 commit 4574e1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pretty-checkbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function init(Survey) {
113113
input.onchange = changeHandler;
114114
input.value = choiceItem.value;
115115

116-
if (booleanType) {
116+
if (booleanType && question.value === null) {
117117
input.indeterminate = question.defaultValue === "indeterminate";
118118
}
119119

@@ -159,7 +159,7 @@ function init(Survey) {
159159
if (!inChangeHandler) {
160160
var checkedItems = newValue || [];
161161
if (radiogroupType || booleanType) {
162-
checkedItems = [newValue];
162+
checkedItems = [newValue && newValue.toString()];
163163
}
164164

165165
Object.values(itemInputs).forEach(function(inputItem) {

0 commit comments

Comments
 (0)