@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.
@@ -4576,7 +4576,8 @@ let DropDownList = class DropDownList extends DropDownBase {
4576
4576
  }
4577
4577
  onDocumentClick(e) {
4578
4578
  const target = e.target;
4579
- if (!(!isNullOrUndefined(this.popupObj) && closest(target, this.checkSelector(this.popupObj.element.id))) &&
4579
+ if (!isNullOrUndefined(target) && !(!isNullOrUndefined(this.popupObj) &&
4580
+ closest(target, this.checkSelector(this.popupObj.element.id))) &&
4580
4581
  !isNullOrUndefined(this.inputWrapper) && !this.inputWrapper.container.contains(e.target)) {
4581
4582
  if (this.inputWrapper.container.classList.contains(dropDownListClasses.inputFocus) || this.isPopupOpen) {
4582
4583
  this.isDocumentClick = true;
@@ -6215,7 +6216,9 @@ let DropDownList = class DropDownList extends DropDownBase {
6215
6216
  ulElement = null;
6216
6217
  },
6217
6218
  targetExitViewport: () => {
6218
- this.hidePopup();
6219
+ if (!Browser.isDevice || (this.allowFiltering === false && this.isPopupOpen)) {
6220
+ this.hidePopup();
6221
+ }
6219
6222
  }
6220
6223
  });
6221
6224
  }