@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.
@@ -1668,6 +1668,9 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
1668
1668
  }
1669
1669
  var query_1 = _this.getQuery(eventArgs.query);
1670
1670
  eventArgs.data.executeQuery(query_1).then(function (e) {
1671
+ if (_this.isAngular && _this.isDestroyed) {
1672
+ return;
1673
+ }
1671
1674
  _this.isPreventChange = _this.isAngular && _this.preventChange ? true : _this.isPreventChange;
1672
1675
  var isReOrder = true;
1673
1676
  if (!_this.virtualSelectAll) {
@@ -1729,6 +1732,9 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
1729
1732
  _this.isRequesting = false;
1730
1733
  _this.isCustomFiltering = false;
1731
1734
  var listItems = e.result;
1735
+ if (_this.getModuleName() === 'dropdownlist' && listItems.length === 0 && _this.filterInput && _this.filterInput.value.trim() === '' && _this.actionCompleteData && _this.actionCompleteData.list && _this.actionCompleteData.list.length) {
1736
+ listItems = _this.actionCompleteData.list;
1737
+ }
1732
1738
  if (_this.isIncrementalRequest) {
1733
1739
  ulElement = _this.renderItems(listItems, fields);
1734
1740
  return;
@@ -4685,7 +4691,8 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
4685
4691
  };
4686
4692
  DropDownList.prototype.onDocumentClick = function (e) {
4687
4693
  var target = e.target;
4688
- if (!(!isNullOrUndefined(this.popupObj) && closest(target, this.checkSelector(this.popupObj.element.id))) &&
4694
+ if (!isNullOrUndefined(target) && !(!isNullOrUndefined(this.popupObj) &&
4695
+ closest(target, this.checkSelector(this.popupObj.element.id))) &&
4689
4696
  !isNullOrUndefined(this.inputWrapper) && !this.inputWrapper.container.contains(e.target)) {
4690
4697
  if (this.inputWrapper.container.classList.contains(dropDownListClasses.inputFocus) || this.isPopupOpen) {
4691
4698
  this.isDocumentClick = true;
@@ -6344,7 +6351,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
6344
6351
  ulElement = null;
6345
6352
  },
6346
6353
  targetExitViewport: function () {
6347
- _this.hidePopup();
6354
+ if (!Browser.isDevice || (_this.allowFiltering === false && _this.isPopupOpen)) {
6355
+ _this.hidePopup();
6356
+ }
6348
6357
  }
6349
6358
  });
6350
6359
  };
@@ -7558,9 +7567,11 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
7558
7567
  DropDownList.prototype.updateFloatLabelOverflowWidth = function () {
7559
7568
  var container = this.inputWrapper.container;
7560
7569
  var label = container.querySelector('.e-float-text');
7561
- var calculateWidth = (container.clientWidth - this.getRightIconsWidth());
7562
- if (label && calculateWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
7563
- label.style.width = calculateWidth + 'px';
7570
+ if (label && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
7571
+ var calculateWidth = (container.clientWidth - this.getRightIconsWidth());
7572
+ if (calculateWidth) {
7573
+ label.style.width = calculateWidth + 'px';
7574
+ }
7564
7575
  }
7565
7576
  };
7566
7577
  /**
@@ -20499,9 +20510,11 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
20499
20510
  MultiSelect.prototype.updateFloatLabelOverflowWidth = function () {
20500
20511
  var container = this.overAllWrapper;
20501
20512
  var label = container.querySelector('.e-float-text');
20502
- var calculateWidth = (container.clientWidth - this.getRightIconsWidth());
20503
- if (label && calculateWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
20504
- label.style.width = calculateWidth + 'px';
20513
+ if (label && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
20514
+ var calculateWidth = (container.clientWidth - this.getRightIconsWidth());
20515
+ if (calculateWidth) {
20516
+ label.style.width = calculateWidth + 'px';
20517
+ }
20505
20518
  }
20506
20519
  };
20507
20520
  /**