Skip to content

Commit 381da44

Browse files
committed
Fix #134 onValueChanged event on uncheck iCheck checkbox not fired
1 parent 8f519cf commit 381da44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/icheck.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function init(Survey, $) {
7272
});
7373
$el.find("input").on("ifUnchecked", function(event) {
7474
if (question.getType() === "checkbox") {
75-
var oldValue = question.value || [];
75+
var oldValue = (question.value || []).slice();
7676
var index = oldValue.indexOf(event.target.value);
7777
if (index >= 0) {
7878
oldValue.splice(index, 1);

0 commit comments

Comments
 (0)