@syncfusion/ej2-dropdowns 20.1.57 → 20.1.60
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/CHANGELOG.md +18 -0
- 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 +15 -4
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +15 -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 +9 -9
- package/src/auto-complete/auto-complete.d.ts +1 -1
- package/src/auto-complete/auto-complete.js +2 -2
- package/src/combo-box/combo-box.js +1 -1
- package/src/drop-down-list/drop-down-list.js +9 -1
- package/src/multi-select/multi-select.js +3 -0
|
@@ -2464,13 +2464,21 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
2464
2464
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2465
2465
|
if (this.isReact) {
|
|
2466
2466
|
this.clearTemplate(['valueTemplate']);
|
|
2467
|
+
if (this.valueTempElement) {
|
|
2468
|
+
detach(this.valueTempElement);
|
|
2469
|
+
this.inputElement.style.display = 'block';
|
|
2470
|
+
this.valueTempElement = null;
|
|
2471
|
+
}
|
|
2467
2472
|
}
|
|
2468
2473
|
if (!this.valueTempElement) {
|
|
2469
2474
|
this.valueTempElement = this.createElement('span', { className: dropDownListClasses.value });
|
|
2470
2475
|
this.inputElement.parentElement.insertBefore(this.valueTempElement, this.inputElement);
|
|
2471
2476
|
this.inputElement.style.display = 'none';
|
|
2472
2477
|
}
|
|
2473
|
-
|
|
2478
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2479
|
+
if (!this.isReact) {
|
|
2480
|
+
this.valueTempElement.innerHTML = '';
|
|
2481
|
+
}
|
|
2474
2482
|
const valuecheck = this.dropdownCompiler(this.valueTemplate);
|
|
2475
2483
|
if (valuecheck) {
|
|
2476
2484
|
compiledString = compile(document.querySelector(this.valueTemplate).innerHTML.trim());
|
|
@@ -7745,7 +7753,7 @@ let ComboBox = class ComboBox extends DropDownList {
|
|
|
7745
7753
|
else if (this.isTyped && !this.isSelected && isNullOrUndefined(li)) {
|
|
7746
7754
|
this.customValue(e);
|
|
7747
7755
|
}
|
|
7748
|
-
this.hidePopup();
|
|
7756
|
+
this.hidePopup(e);
|
|
7749
7757
|
}
|
|
7750
7758
|
setHoverList(li) {
|
|
7751
7759
|
this.removeSelection();
|
|
@@ -8387,8 +8395,8 @@ let AutoComplete = class AutoComplete extends ComboBox {
|
|
|
8387
8395
|
*
|
|
8388
8396
|
* @returns {void}
|
|
8389
8397
|
*/
|
|
8390
|
-
hidePopup() {
|
|
8391
|
-
super.hidePopup();
|
|
8398
|
+
hidePopup(e) {
|
|
8399
|
+
super.hidePopup(e);
|
|
8392
8400
|
this.activeIndex = -1;
|
|
8393
8401
|
}
|
|
8394
8402
|
/**
|
|
@@ -9275,6 +9283,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
9275
9283
|
}
|
|
9276
9284
|
getQuery(query) {
|
|
9277
9285
|
const filterQuery = query ? query.clone() : this.query ? this.query.clone() : new Query();
|
|
9286
|
+
if (this.isFiltered) {
|
|
9287
|
+
return filterQuery;
|
|
9288
|
+
}
|
|
9278
9289
|
if (this.filterAction) {
|
|
9279
9290
|
if (this.targetElement() !== null) {
|
|
9280
9291
|
const dataType = this.typeOfData(this.dataSource).typeof;
|