@syncfusion/ej2-dropdowns 26.2.11 → 26.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +7 -4
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +7 -4
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/combo-box/combo-box.js +1 -1
- package/src/drop-down-list/drop-down-list.d.ts +1 -0
- package/src/drop-down-list/drop-down-list.js +3 -0
- package/src/drop-down-tree/drop-down-tree.js +2 -2
- package/src/mention/mention.js +1 -1
|
@@ -2786,6 +2786,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
2786
2786
|
_this.isListSearched = false;
|
|
2787
2787
|
_this.preventChange = false;
|
|
2788
2788
|
_this.isTouched = false;
|
|
2789
|
+
_this.isFocused = false;
|
|
2789
2790
|
_this.IsScrollerAtEnd = function () {
|
|
2790
2791
|
return this.list && this.list.scrollTop + this.list.clientHeight >= this.list.scrollHeight;
|
|
2791
2792
|
};
|
|
@@ -3202,6 +3203,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3202
3203
|
this.isActive = false;
|
|
3203
3204
|
this.beforePopupOpen = false;
|
|
3204
3205
|
}
|
|
3206
|
+
this.isFocused = false;
|
|
3205
3207
|
};
|
|
3206
3208
|
DropDownList.prototype.focusOutAction = function (e) {
|
|
3207
3209
|
this.isInteracted = false;
|
|
@@ -3233,6 +3235,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3233
3235
|
this.trigger('focus', args);
|
|
3234
3236
|
}
|
|
3235
3237
|
this.updateIconState();
|
|
3238
|
+
this.isFocused = true;
|
|
3236
3239
|
};
|
|
3237
3240
|
DropDownList.prototype.resetValueHandler = function (e) {
|
|
3238
3241
|
var formElement = closest(this.inputElement, 'form');
|
|
@@ -8288,7 +8291,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
8288
8291
|
this.currentText = this.text;
|
|
8289
8292
|
this.currentValue = this.value;
|
|
8290
8293
|
if (!isNullOrUndefined(this.value) && this.value.length > 0 && !isNullOrUndefined(this.currentText)) {
|
|
8291
|
-
this.inputWrapper.setAttribute('aria-label', this.currentText.
|
|
8294
|
+
this.inputWrapper.setAttribute('aria-label', this.currentText.replace(/,/g, ', '));
|
|
8292
8295
|
}
|
|
8293
8296
|
if (this.isInitialized) {
|
|
8294
8297
|
this.triggerChangeEvent();
|
|
@@ -9211,7 +9214,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
9211
9214
|
this.currentText = this.text;
|
|
9212
9215
|
this.currentValue = this.value;
|
|
9213
9216
|
if (!isNullOrUndefined(this.value) && this.value.length > 0 && !isNullOrUndefined(this.currentText)) {
|
|
9214
|
-
this.inputWrapper.setAttribute('aria-label', this.currentText.
|
|
9217
|
+
this.inputWrapper.setAttribute('aria-label', this.currentText.replace(/,/g, ', '));
|
|
9215
9218
|
}
|
|
9216
9219
|
else {
|
|
9217
9220
|
this.inputWrapper.setAttribute('aria-label', this.getModuleName());
|
|
@@ -10881,7 +10884,7 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
10881
10884
|
}
|
|
10882
10885
|
}
|
|
10883
10886
|
}
|
|
10884
|
-
else if (this.allowCustom && this.
|
|
10887
|
+
else if (this.allowCustom && this.isFocused) {
|
|
10885
10888
|
this.isSelectCustom = true;
|
|
10886
10889
|
}
|
|
10887
10890
|
};
|
|
@@ -21563,7 +21566,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
21563
21566
|
if (isNullOrUndefined(text)) {
|
|
21564
21567
|
return '';
|
|
21565
21568
|
}
|
|
21566
|
-
var textValue = text.replace(/\u00A0/g, ' ');
|
|
21569
|
+
var textValue = text.indexOf('\u200B') > -1 ? text.replace(/\u200B/g, '').replace(/\u00A0/g, ' ') : text.replace(/\u00A0/g, ' ');
|
|
21567
21570
|
var words = textValue.split(/\s+/);
|
|
21568
21571
|
var wordCnt = words.length - 1;
|
|
21569
21572
|
return words[wordCnt].trim();
|