We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92b53b5 commit 4574e1eCopy full SHA for 4574e1e
src/pretty-checkbox.js
@@ -113,7 +113,7 @@ function init(Survey) {
113
input.onchange = changeHandler;
114
input.value = choiceItem.value;
115
116
- if (booleanType) {
+ if (booleanType && question.value === null) {
117
input.indeterminate = question.defaultValue === "indeterminate";
118
}
119
@@ -159,7 +159,7 @@ function init(Survey) {
159
if (!inChangeHandler) {
160
var checkedItems = newValue || [];
161
if (radiogroupType || booleanType) {
162
- checkedItems = [newValue];
+ checkedItems = [newValue && newValue.toString()];
163
164
165
Object.values(itemInputs).forEach(function(inputItem) {
0 commit comments