@syncfusion/ej2-dropdowns 34.2.6 → 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;
@@ -4576,7 +4582,8 @@ let DropDownList = class DropDownList extends DropDownBase {
4576
4582
  }
4577
4583
  onDocumentClick(e) {
4578
4584
  const target = e.target;
4579
- if (!(!isNullOrUndefined(this.popupObj) && closest(target, this.checkSelector(this.popupObj.element.id))) &&
4585
+ if (!isNullOrUndefined(target) && !(!isNullOrUndefined(this.popupObj) &&
4586
+ closest(target, this.checkSelector(this.popupObj.element.id))) &&
4580
4587
  !isNullOrUndefined(this.inputWrapper) && !this.inputWrapper.container.contains(e.target)) {
4581
4588
  if (this.inputWrapper.container.classList.contains(dropDownListClasses.inputFocus) || this.isPopupOpen) {
4582
4589
  this.isDocumentClick = true;
@@ -6215,7 +6222,9 @@ let DropDownList = class DropDownList extends DropDownBase {
6215
6222
  ulElement = null;
6216
6223
  },
6217
6224
  targetExitViewport: () => {
6218
- this.hidePopup();
6225
+ if (!Browser.isDevice || (this.allowFiltering === false && this.isPopupOpen)) {
6226
+ this.hidePopup();
6227
+ }
6219
6228
  }
6220
6229
  });
6221
6230
  }
@@ -7414,9 +7423,11 @@ let DropDownList = class DropDownList extends DropDownBase {
7414
7423
  updateFloatLabelOverflowWidth() {
7415
7424
  const container = this.inputWrapper.container;
7416
7425
  const label = container.querySelector('.e-float-text');
7417
- const calculateWidth = (container.clientWidth - this.getRightIconsWidth());
7418
- if (label && calculateWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
7419
- 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
+ }
7420
7431
  }
7421
7432
  }
7422
7433
  /**
@@ -20192,9 +20203,11 @@ let MultiSelect = class MultiSelect extends DropDownBase {
20192
20203
  updateFloatLabelOverflowWidth() {
20193
20204
  const container = this.overAllWrapper;
20194
20205
  const label = container.querySelector('.e-float-text');
20195
- const calculateWidth = (container.clientWidth - this.getRightIconsWidth());
20196
- if (label && calculateWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
20197
- 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
+ }
20198
20211
  }
20199
20212
  }
20200
20213
  /**