@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.
@@ -5636,6 +5636,7 @@ let DropDownList = class DropDownList extends DropDownBase {
5636
5636
  }
5637
5637
  const args = { cancel: false };
5638
5638
  this.trigger('beforeOpen', args, (args) => {
5639
+ this.iOSscrollPosition = { x: document.documentElement.scrollLeft, y: document.documentElement.scrollTop };
5639
5640
  let initialPopupHeight;
5640
5641
  if (!args.cancel) {
5641
5642
  const popupEle = this.createElement('div', {
@@ -5857,6 +5858,9 @@ let DropDownList = class DropDownList extends DropDownBase {
5857
5858
  }
5858
5859
  }, 15);
5859
5860
  }
5861
+ if (this.allowFiltering && this.isDeviceFullScreen && Browser.isDevice && Browser.isIos) {
5862
+ document.documentElement.scrollIntoView();
5863
+ }
5860
5864
  }
5861
5865
  else {
5862
5866
  this.beforePopupOpen = false;
@@ -6386,6 +6390,12 @@ let DropDownList = class DropDownList extends DropDownBase {
6386
6390
  this.fixedHeaderElement = null;
6387
6391
  }
6388
6392
  if (!eventArgs.cancel) {
6393
+ if (this.isPopupOpen && this.allowFiltering && this.isDeviceFullScreen && Browser.isDevice && Browser.isIos) {
6394
+ document.documentElement.scrollTo({
6395
+ top: this.iOSscrollPosition.y,
6396
+ left: this.iOSscrollPosition.x
6397
+ });
6398
+ }
6389
6399
  if (this.getModuleName() === 'autocomplete') {
6390
6400
  this.rippleFun();
6391
6401
  }
@@ -9996,7 +10006,10 @@ let DropDownTree = class DropDownTree extends Component {
9996
10006
  selectedValues = selectedValues.filter((selectedValue) => {
9997
10007
  const nodeData = this.treeObj.getTreeData(selectedValue);
9998
10008
  if (Array.isArray(nodeData)) {
9999
- return nodeData.every((nodeSelectedData) => nodeSelectedData.selected);
10009
+ return nodeData.every((nodeSelectedData) => {
10010
+ return nodeSelectedData.selected === true ||
10011
+ this.selectedData.some((sel) => sel.id === String(nodeSelectedData[this.fields.value]));
10012
+ });
10000
10013
  }
10001
10014
  return true;
10002
10015
  });