@syncfusion/ej2-dropdowns 25.1.35 → 25.1.37

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.
@@ -13972,6 +13972,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
13972
13972
  }
13973
13973
  }
13974
13974
  });
13975
+ this.checkCollision(this.popupWrapper);
13975
13976
  this.popupContentElement = this.popupObj.element.querySelector('.e-content');
13976
13977
  if (this.mode === 'CheckBox' && Browser.isDevice && this.allowFiltering) {
13977
13978
  this.notify('deviceSearchBox', { module: 'CheckBoxSelection', enable: this.mode === 'CheckBox' });
@@ -13981,6 +13982,15 @@ let MultiSelect = class MultiSelect extends DropDownBase {
13981
13982
  }
13982
13983
  }
13983
13984
  }
13985
+ checkCollision(popupEle) {
13986
+ if (!(this.mode === 'CheckBox' && Browser.isDevice && this.allowFiltering)) {
13987
+ const collision = isCollide(popupEle);
13988
+ if (collision.length > 0) {
13989
+ popupEle.style.marginTop = -parseInt(getComputedStyle(popupEle).marginTop, 10) + 'px';
13990
+ }
13991
+ this.popupObj.resolveCollision();
13992
+ }
13993
+ }
13984
13994
  setHeaderTemplate() {
13985
13995
  let compiledString;
13986
13996
  if (this.header) {
@@ -17018,13 +17028,20 @@ class CheckBoxSelection {
17018
17028
  if (this.parent.allowFiltering && this.parent.targetInputElement.value === '') {
17019
17029
  this.parent.search(null);
17020
17030
  }
17021
- this.parent.refreshPopup();
17022
17031
  this.parent.refreshListItems(null);
17032
+ this.parent.refreshPopup();
17023
17033
  this.clearIconElement.style.visibility = 'hidden';
17024
17034
  this.filterInput.focus();
17025
17035
  this.setReorder(e);
17036
+ this.boundPreventListSelection = this.preventListSelection.bind(this);
17037
+ this.parent.popupWrapper.addEventListener('mouseup', this.boundPreventListSelection, true);
17026
17038
  e.preventDefault();
17027
17039
  }
17040
+ preventListSelection(e) {
17041
+ e.stopPropagation();
17042
+ this.parent.popupWrapper.removeEventListener('mouseup', this.boundPreventListSelection, true);
17043
+ this.boundPreventListSelection = null;
17044
+ }
17028
17045
  setDeviceSearchBox() {
17029
17046
  this.parent.popupObj.element.classList.add(device);
17030
17047
  this.parent.popupObj.element.classList.add(mobileFilter);