Skip to content

Commit 5135b7f

Browse files
author
Dmitry Kuzin (DevExpress)
committed
Set keepIncorrectValues flat to true value for select2
1 parent 6633ad4 commit 5135b7f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/select2.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function init(Survey, $) {
8484
if (settings) {
8585
if (settings.ajax) {
8686
$el.select2(settings);
87-
question.clearIncorrectValuesCallback = function () { };
87+
question.keepIncorrectValues = true;
8888
} else {
8989
settings.data = question.visibleChoices.map(function (choice) {
9090
return {
@@ -140,7 +140,6 @@ function init(Survey, $) {
140140
.off("select2:select")
141141
.select2("destroy");
142142
question.readOnlyChangedCallback = null;
143-
question.clearIncorrectValuesCallback = null;
144143
}
145144
};
146145

0 commit comments

Comments
 (0)