@syncfusion/ej2-dropdowns 34.2.6 → 34.2.7

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.
@@ -4685,7 +4685,8 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
4685
4685
  };
4686
4686
  DropDownList.prototype.onDocumentClick = function (e) {
4687
4687
  var target = e.target;
4688
- if (!(!isNullOrUndefined(this.popupObj) && closest(target, this.checkSelector(this.popupObj.element.id))) &&
4688
+ if (!isNullOrUndefined(target) && !(!isNullOrUndefined(this.popupObj) &&
4689
+ closest(target, this.checkSelector(this.popupObj.element.id))) &&
4689
4690
  !isNullOrUndefined(this.inputWrapper) && !this.inputWrapper.container.contains(e.target)) {
4690
4691
  if (this.inputWrapper.container.classList.contains(dropDownListClasses.inputFocus) || this.isPopupOpen) {
4691
4692
  this.isDocumentClick = true;
@@ -6344,7 +6345,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
6344
6345
  ulElement = null;
6345
6346
  },
6346
6347
  targetExitViewport: function () {
6347
- _this.hidePopup();
6348
+ if (!Browser.isDevice || (_this.allowFiltering === false && _this.isPopupOpen)) {
6349
+ _this.hidePopup();
6350
+ }
6348
6351
  }
6349
6352
  });
6350
6353
  };