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 8f519cf commit 381da44Copy full SHA for 381da44
src/icheck.js
@@ -72,7 +72,7 @@ function init(Survey, $) {
72
});
73
$el.find("input").on("ifUnchecked", function(event) {
74
if (question.getType() === "checkbox") {
75
- var oldValue = question.value || [];
+ var oldValue = (question.value || []).slice();
76
var index = oldValue.indexOf(event.target.value);
77
if (index >= 0) {
78
oldValue.splice(index, 1);
0 commit comments