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 435743f commit 7899bd8Copy full SHA for 7899bd8
src/select2.js
@@ -76,7 +76,7 @@ function init(Survey, $) {
76
var updateValueHandler = function () {
77
if (isSettingValue) return;
78
isSettingValue = true;
79
- if ($el.find("option[value='" + question.value + "']").length) {
+ if ($el.find("option[value='" + (question.value || "") + "']").length) {
80
$el.val(question.value).trigger("change");
81
} else {
82
if (question.value !== null && question.value !== undefined) {
@@ -118,6 +118,7 @@ function init(Survey, $) {
118
};
119
})
120
);
121
+ question.clearIncorrectValues();
122
$el.select2(settings);
123
}
124
// fixed width accrording to https://stackoverflow.com/questions/45276778/select2-not-responsive-width-larger-than-container
0 commit comments