Skip to content

Commit f50f5ca

Browse files
work for #52
1 parent 615d34e commit f50f5ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/select2.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ function init(Survey, $) {
100100
$el.on("select2:select", function (e) {
101101
question.value = e.target.value;
102102
});
103+
$el.on("select2:unselecting", function (e) {
104+
question.value = null;
105+
});
103106
othersEl.onchange = othersElChanged;
104107
question.valueChangedCallback = updateValueHandler;
105108
question.commentChangedCallback = updateCommentHandler;

0 commit comments

Comments
 (0)