@syncfusion/ej2-dropdowns 20.1.58 → 20.1.59

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.
@@ -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
- this.valueTempElement.innerHTML = '';
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());
@@ -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;