Skip to content

Commit 3a7f4fa

Browse files
Merge branch 'master' of https://github.com/surveyjs/widgets
2 parents ce6e70c + 58ed9fc commit 3a7f4fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pretty-checkbox.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function init(Survey) {
7777
var targetChecked = target.checked;
7878

7979
if (checkboxType) {
80-
var questionValue = question.value || [];
80+
var questionValue = question.createValueCopy() || [];
8181
var valueIndex = questionValue.indexOf(targetValue);
8282
if (targetChecked) {
8383
if (valueIndex === -1) {
@@ -188,6 +188,7 @@ function init(Survey) {
188188
},
189189
willUnmount: function(question, el) {
190190
question.valueChangedCallback = undefined;
191+
question.readOnlyChangedCallback = undefined;
191192
}
192193
};
193194

0 commit comments

Comments
 (0)