@syncfusion/ej2-dropdowns 31.1.17 → 31.1.20
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 +18 -9
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +18 -9
- 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 +5 -5
- package/src/combo-box/combo-box.js +6 -1
- package/src/drop-down-list/drop-down-list.js +4 -6
- package/src/mention/mention.js +8 -2
|
@@ -5578,8 +5578,8 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
5578
5578
|
this.removeFocus();
|
|
5579
5579
|
if (this.allowFiltering && this.actionCompleteData && this.actionCompleteData.ulElement &&
|
|
5580
5580
|
this.dataSource instanceof DataManager) {
|
|
5581
|
-
const focus = this.actionCompleteData.ulElement.
|
|
5582
|
-
if (focus) {
|
|
5581
|
+
const focus = this.actionCompleteData.ulElement.querySelectorAll('.' + dropDownListClasses.focus);
|
|
5582
|
+
if (focus && focus.length) {
|
|
5583
5583
|
removeClass(focus, dropDownListClasses.focus);
|
|
5584
5584
|
}
|
|
5585
5585
|
}
|
|
@@ -5773,7 +5773,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
5773
5773
|
setTimeout(() => {
|
|
5774
5774
|
if (this.value || this.list.querySelector('.e-active')) {
|
|
5775
5775
|
this.updateSelectionList();
|
|
5776
|
-
if (this.
|
|
5776
|
+
if (this.viewPortInfo && this.viewPortInfo.offsets.top) {
|
|
5777
5777
|
this.list.scrollTop = this.viewPortInfo.offsets.top;
|
|
5778
5778
|
}
|
|
5779
5779
|
else {
|
|
@@ -6349,9 +6349,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
6349
6349
|
}
|
|
6350
6350
|
let dataSourceCount;
|
|
6351
6351
|
if (this.dataSource instanceof DataManager) {
|
|
6352
|
-
|
|
6353
|
-
dataSourceCount = this.virtualGroupDataSource && this.virtualGroupDataSource.length ?
|
|
6354
|
-
this.virtualGroupDataSource.length : 0;
|
|
6352
|
+
dataSourceCount = this.remoteDataCount;
|
|
6355
6353
|
}
|
|
6356
6354
|
else {
|
|
6357
6355
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -11283,6 +11281,11 @@ let ComboBox = class ComboBox extends DropDownList {
|
|
|
11283
11281
|
this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
11284
11282
|
}
|
|
11285
11283
|
}
|
|
11284
|
+
else if (this.allowCustom) {
|
|
11285
|
+
this.valueMuteChange(this.value);
|
|
11286
|
+
this.setHiddenValue();
|
|
11287
|
+
Input.setValue(this.text, this.inputElement, this.floatLabelType, this.showClearButton);
|
|
11288
|
+
}
|
|
11286
11289
|
else {
|
|
11287
11290
|
this.valueMuteChange(null);
|
|
11288
11291
|
}
|
|
@@ -11311,7 +11314,7 @@ let ComboBox = class ComboBox extends DropDownList {
|
|
|
11311
11314
|
this.setSelection(li, null);
|
|
11312
11315
|
}
|
|
11313
11316
|
else if ((!this.enableVirtualization && this.allowCustom) ||
|
|
11314
|
-
(this.allowCustom && this.enableVirtualization && !doesItemExist)) {
|
|
11317
|
+
(this.allowCustom && this.enableVirtualization && !doesItemExist && !(this.dataSource instanceof DataManager))) {
|
|
11315
11318
|
this.valueMuteChange(this.value);
|
|
11316
11319
|
}
|
|
11317
11320
|
else if (!this.enableVirtualization || (this.enableVirtualization && !(this.dataSource instanceof DataManager)
|
|
@@ -23055,7 +23058,9 @@ let Mention = class Mention extends DropDownBase {
|
|
|
23055
23058
|
}
|
|
23056
23059
|
if (this.isContentEditable(this.inputElement)) {
|
|
23057
23060
|
this.range = this.getCurrentRange();
|
|
23058
|
-
|
|
23061
|
+
if (this.range) {
|
|
23062
|
+
rangetextContent = this.range.startContainer.textContent.split('');
|
|
23063
|
+
}
|
|
23059
23064
|
}
|
|
23060
23065
|
const currentRange = this.getTextRange();
|
|
23061
23066
|
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
@@ -23170,7 +23175,8 @@ let Mention = class Mention extends DropDownBase {
|
|
|
23170
23175
|
return isMatched;
|
|
23171
23176
|
}
|
|
23172
23177
|
getCurrentRange() {
|
|
23173
|
-
this.range = this.inputElement.ownerDocument.getSelection().
|
|
23178
|
+
this.range = this.inputElement.ownerDocument.getSelection().rangeCount > 0 &&
|
|
23179
|
+
this.inputElement.ownerDocument.getSelection().getRangeAt(0);
|
|
23174
23180
|
return this.range;
|
|
23175
23181
|
}
|
|
23176
23182
|
performFiltering(e) {
|
|
@@ -24059,6 +24065,9 @@ let Mention = class Mention extends DropDownBase {
|
|
|
24059
24065
|
if (Browser.isAndroid) {
|
|
24060
24066
|
return '<span contenteditable="true" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '​');
|
|
24061
24067
|
}
|
|
24068
|
+
else if (Browser.info.name === 'mozilla') {
|
|
24069
|
+
return '<span><span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span></span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '​');
|
|
24070
|
+
}
|
|
24062
24071
|
else {
|
|
24063
24072
|
return '<span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '​');
|
|
24064
24073
|
}
|