Skip to content

Commit 76896bf

Browse files
committed
2 parents ee6a9f3 + 7fa5df9 commit 76896bf

File tree

7 files changed

+32
-9
lines changed

7 files changed

+32
-9
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
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+
### [1.9.22](https://github.com/surveyjs/custom-widgets/compare/v1.9.21...v1.9.22) (2022-03-29)
6+
7+
### [1.9.21](https://github.com/surveyjs/custom-widgets/compare/v1.9.20...v1.9.21) (2022-03-24)
8+
9+
### [1.9.20](https://github.com/surveyjs/custom-widgets/compare/v1.9.19...v1.9.20) (2022-03-17)
10+
11+
### [1.9.19](https://github.com/surveyjs/custom-widgets/compare/v1.9.18...v1.9.19) (2022-03-09)
12+
13+
### [1.9.18](https://github.com/surveyjs/custom-widgets/compare/v1.9.17...v1.9.18) (2022-02-24)
14+
15+
### [1.9.17](https://github.com/surveyjs/custom-widgets/compare/v1.9.16...v1.9.17) (2022-02-24)
16+
17+
### [1.9.16](https://github.com/surveyjs/custom-widgets/compare/v1.9.15...v1.9.16) (2022-02-23)
18+
19+
### [1.9.15](https://github.com/surveyjs/custom-widgets/compare/v1.9.14...v1.9.15) (2022-02-22)
20+
521
### [1.9.14](https://github.com/surveyjs/custom-widgets/compare/v1.9.13...v1.9.14) (2022-02-17)
622

723
### [1.9.13](https://github.com/surveyjs/custom-widgets/compare/v1.9.12...v1.9.13) (2022-02-14)

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.9.14",
3+
"version": "1.9.22",
44
"scripts": {
55
"start": "npm run build && live-server",
66
"watch": "webpack --env buildType=dev --watch",

src/easy-autocomplete.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ function init(Survey, $) {
6666
options.list = {
6767
sort: {
6868
enabled: true,
69+
method: (aStr, bStr) => {
70+
const inputStr = $el.val().toLowerCase();
71+
const aIndex = aStr.toLowerCase().indexOf(inputStr);
72+
const bIndex = bStr.toLowerCase().indexOf(inputStr);
73+
return aIndex - bIndex;
74+
}
6975
},
7076
match: {
7177
enabled: true,

src/images/barrating.svg

Lines changed: 1 addition & 1 deletion
Loading

src/nouislider.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ function init(Survey) {
8181
el.style.marginBottom = "60px";
8282
if (question.orientation === "vertical") {
8383
el.style.height = "250px";
84+
el.style.marginLeft = "60px";
8485
}
8586
var slider = noUiSlider.create(el, {
8687
start: question.rangeMin <= question.value && question.value <= question.rangeMax ?

src/select2-tagbox.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ function init(Survey, $) {
156156
const select2Val = e.params.data.id;
157157
if (isAllItemSelected(select2Val)) {
158158
question.clearValue();
159-
} else {
160-
const val = [].concat(question.value);
161-
if(Array.isArray(val)) {
162-
for(var i = 0; i < val.length; i ++) {
163-
if(val[i] == select2Val || (!!val[i] && val[i].toString() == select2Val)) {
159+
} else {
160+
const val = [].concat(question.renderedValue);
161+
if (Array.isArray(val)) {
162+
for (var i = 0; i < val.length; i++) {
163+
if (val[i] == select2Val || (!!val[i] && val[i].toString() == select2Val)) {
164164
val.splice(i, 1);
165-
question.value = val;
165+
question.renderedValue = val;
166166
break;
167167
}
168168
}

0 commit comments

Comments
 (0)