Skip to content

Commit dfe29b7

Browse files
committed
Fixed https://surveyjs.answerdesk.io/ticket/details/T2224 - On deselecting select2tagbox, onValueChanged not getting called
1 parent ab930fb commit dfe29b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/select2-tagbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function init(Survey, $) {
111111
$el.on("select2:unselect", function(e) {
112112
var index = (question.value || []).indexOf(e.params.data.id);
113113
if (index !== -1) {
114-
var val = question.value;
114+
var val = [].concat(question.value);
115115
val.splice(index, 1);
116116
question.value = val;
117117
}

0 commit comments

Comments
 (0)