@syncfusion/ej2-dropdowns 32.1.19 → 32.1.20

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.
@@ -5760,6 +5760,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
5760
5760
  }
5761
5761
  var args = { cancel: false };
5762
5762
  this.trigger('beforeOpen', args, function (args) {
5763
+ _this.iOSscrollPosition = { x: document.documentElement.scrollLeft, y: document.documentElement.scrollTop };
5763
5764
  var initialPopupHeight;
5764
5765
  if (!args.cancel) {
5765
5766
  var popupEle_1 = _this.createElement('div', {
@@ -5982,6 +5983,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
5982
5983
  }
5983
5984
  }, 15);
5984
5985
  }
5986
+ if (_this.allowFiltering && _this.isDeviceFullScreen && Browser.isDevice && Browser.isIos) {
5987
+ document.documentElement.scrollIntoView();
5988
+ }
5985
5989
  }
5986
5990
  else {
5987
5991
  _this.beforePopupOpen = false;
@@ -6518,6 +6522,12 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
6518
6522
  _this.fixedHeaderElement = null;
6519
6523
  }
6520
6524
  if (!eventArgs.cancel) {
6525
+ if (_this.isPopupOpen && _this.allowFiltering && _this.isDeviceFullScreen && Browser.isDevice && Browser.isIos) {
6526
+ document.documentElement.scrollTo({
6527
+ top: _this.iOSscrollPosition.y,
6528
+ left: _this.iOSscrollPosition.x
6529
+ });
6530
+ }
6521
6531
  if (_this.getModuleName() === 'autocomplete') {
6522
6532
  _this.rippleFun();
6523
6533
  }
@@ -10186,7 +10196,10 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
10186
10196
  selectedValues = selectedValues.filter(function (selectedValue) {
10187
10197
  var nodeData = _this.treeObj.getTreeData(selectedValue);
10188
10198
  if (Array.isArray(nodeData)) {
10189
- return nodeData.every(function (nodeSelectedData) { return nodeSelectedData.selected; });
10199
+ return nodeData.every(function (nodeSelectedData) {
10200
+ return nodeSelectedData.selected === true ||
10201
+ _this.selectedData.some(function (sel) { return sel.id === String(nodeSelectedData[_this.fields.value]); });
10202
+ });
10190
10203
  }
10191
10204
  return true;
10192
10205
  });