Skip to content

Commit

Permalink
Fix #150
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Kuzin (DevExpress) committed Nov 5, 2019
1 parent 92b53b5 commit 4574e1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pretty-checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function init(Survey) {
input.onchange = changeHandler;
input.value = choiceItem.value;

if (booleanType) {
if (booleanType && question.value === null) {
input.indeterminate = question.defaultValue === "indeterminate";
}

Expand Down Expand Up @@ -159,7 +159,7 @@ function init(Survey) {
if (!inChangeHandler) {
var checkedItems = newValue || [];
if (radiogroupType || booleanType) {
checkedItems = [newValue];
checkedItems = [newValue && newValue.toString()];
}

Object.values(itemInputs).forEach(function(inputItem) {
Expand Down

0 comments on commit 4574e1e

Please sign in to comment.