Skip to content

Commit 2ab37ff

Browse files
committed
Merge branch 'master' of https://github.com/surveyjs/widgets
2 parents 0f64d59 + 9d25758 commit 2ab37ff

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
<a name="1.0.96"></a>
6+
## [1.0.96](https://github.com/surveyjs/widgets/compare/v1.0.95...v1.0.96) (2019-07-02)
7+
8+
9+
10+
<a name="1.0.95"></a>
11+
## [1.0.95](https://github.com/surveyjs/widgets/compare/v1.0.94...v1.0.95) (2019-06-25)
12+
13+
14+
15+
<a name="1.0.94"></a>
16+
## [1.0.94](https://github.com/surveyjs/widgets/compare/v1.0.93...v1.0.94) (2019-06-22)
17+
18+
19+
20+
<a name="1.0.93"></a>
21+
## [1.0.93](https://github.com/surveyjs/widgets/compare/v1.0.92...v1.0.93) (2019-06-20)
22+
23+
24+
525
<a name="1.0.92"></a>
626
## [1.0.92](https://github.com/surveyjs/widgets/compare/v1.0.91...v1.0.92) (2019-06-11)
727

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "surveyjs-widgets",
3-
"version": "1.0.92",
3+
"version": "1.0.96",
44
"scripts": {
55
"start": "npm run build && live-server",
66
"watch": "webpack --env.buildType dev --watch",

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
}

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)