@syncfusion/ej2-dropdowns 34.2.7 → 34.2.8

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.
@@ -1584,6 +1584,9 @@ let DropDownBase = class DropDownBase extends Component {
1584
1584
  }
1585
1585
  const query = this.getQuery(eventArgs.query);
1586
1586
  eventArgs.data.executeQuery(query).then((e) => {
1587
+ if (this.isAngular && this.isDestroyed) {
1588
+ return;
1589
+ }
1587
1590
  this.isPreventChange = this.isAngular && this.preventChange ? true : this.isPreventChange;
1588
1591
  let isReOrder = true;
1589
1592
  if (!this.virtualSelectAll) {
@@ -1644,7 +1647,10 @@ let DropDownBase = class DropDownBase extends Component {
1644
1647
  if (!e.cancel) {
1645
1648
  this.isRequesting = false;
1646
1649
  this.isCustomFiltering = false;
1647
- const listItems = e.result;
1650
+ let listItems = e.result;
1651
+ if (this.getModuleName() === 'dropdownlist' && listItems.length === 0 && this.filterInput && this.filterInput.value.trim() === '' && this.actionCompleteData && this.actionCompleteData.list && this.actionCompleteData.list.length) {
1652
+ listItems = this.actionCompleteData.list;
1653
+ }
1648
1654
  if (this.isIncrementalRequest) {
1649
1655
  ulElement = this.renderItems(listItems, fields);
1650
1656
  return;
@@ -7417,9 +7423,11 @@ let DropDownList = class DropDownList extends DropDownBase {
7417
7423
  updateFloatLabelOverflowWidth() {
7418
7424
  const container = this.inputWrapper.container;
7419
7425
  const label = container.querySelector('.e-float-text');
7420
- const calculateWidth = (container.clientWidth - this.getRightIconsWidth());
7421
- if (label && calculateWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
7422
- label.style.width = calculateWidth + 'px';
7426
+ if (label && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
7427
+ const calculateWidth = (container.clientWidth - this.getRightIconsWidth());
7428
+ if (calculateWidth) {
7429
+ label.style.width = calculateWidth + 'px';
7430
+ }
7423
7431
  }
7424
7432
  }
7425
7433
  /**
@@ -20195,9 +20203,11 @@ let MultiSelect = class MultiSelect extends DropDownBase {
20195
20203
  updateFloatLabelOverflowWidth() {
20196
20204
  const container = this.overAllWrapper;
20197
20205
  const label = container.querySelector('.e-float-text');
20198
- const calculateWidth = (container.clientWidth - this.getRightIconsWidth());
20199
- if (label && calculateWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
20200
- label.style.width = calculateWidth + 'px';
20206
+ if (label && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
20207
+ const calculateWidth = (container.clientWidth - this.getRightIconsWidth());
20208
+ if (calculateWidth) {
20209
+ label.style.width = calculateWidth + 'px';
20210
+ }
20201
20211
  }
20202
20212
  }
20203
20213
  /**