@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.
@@ -14221,6 +14221,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
14221
14221
  }
14222
14222
  }
14223
14223
  });
14224
+ this.checkCollision(this.popupWrapper);
14224
14225
  this.popupContentElement = this.popupObj.element.querySelector('.e-content');
14225
14226
  if (this.mode === 'CheckBox' && Browser.isDevice && this.allowFiltering) {
14226
14227
  this.notify('deviceSearchBox', { module: 'CheckBoxSelection', enable: this.mode === 'CheckBox' });
@@ -14230,6 +14231,15 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
14230
14231
  }
14231
14232
  }
14232
14233
  };
14234
+ MultiSelect.prototype.checkCollision = function (popupEle) {
14235
+ if (!(this.mode === 'CheckBox' && Browser.isDevice && this.allowFiltering)) {
14236
+ var collision = isCollide(popupEle);
14237
+ if (collision.length > 0) {
14238
+ popupEle.style.marginTop = -parseInt(getComputedStyle(popupEle).marginTop, 10) + 'px';
14239
+ }
14240
+ this.popupObj.resolveCollision();
14241
+ }
14242
+ };
14233
14243
  MultiSelect.prototype.setHeaderTemplate = function () {
14234
14244
  var compiledString;
14235
14245
  if (this.header) {
@@ -17284,13 +17294,20 @@ var CheckBoxSelection = /** @__PURE__ @class */ (function () {
17284
17294
  if (this.parent.allowFiltering && this.parent.targetInputElement.value === '') {
17285
17295
  this.parent.search(null);
17286
17296
  }
17287
- this.parent.refreshPopup();
17288
17297
  this.parent.refreshListItems(null);
17298
+ this.parent.refreshPopup();
17289
17299
  this.clearIconElement.style.visibility = 'hidden';
17290
17300
  this.filterInput.focus();
17291
17301
  this.setReorder(e);
17302
+ this.boundPreventListSelection = this.preventListSelection.bind(this);
17303
+ this.parent.popupWrapper.addEventListener('mouseup', this.boundPreventListSelection, true);
17292
17304
  e.preventDefault();
17293
17305
  };
17306
+ CheckBoxSelection.prototype.preventListSelection = function (e) {
17307
+ e.stopPropagation();
17308
+ this.parent.popupWrapper.removeEventListener('mouseup', this.boundPreventListSelection, true);
17309
+ this.boundPreventListSelection = null;
17310
+ };
17294
17311
  CheckBoxSelection.prototype.setDeviceSearchBox = function () {
17295
17312
  this.parent.popupObj.element.classList.add(device);
17296
17313
  this.parent.popupObj.element.classList.add(mobileFilter);