@syncfusion/ej2-dropdowns 28.1.35 → 28.1.36

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.
@@ -1234,7 +1234,7 @@ let DropDownBase = class DropDownBase extends Component {
1234
1234
  for (let i = 0; i < totalSkeletonCount; i++) {
1235
1235
  const liElement = this.createElement('li', { className: dropDownBaseClasses.virtualList, styles: 'overflow: inherit' });
1236
1236
  if (this.isVirtualizationEnabled && this.itemTemplate) {
1237
- liElement.style.height = this.listItemHeight + 'px';
1237
+ liElement.style.height = (this.listItemHeight - parseInt(window.getComputedStyle(this.getItems()[1]).marginBottom, 10)) + 'px';
1238
1238
  }
1239
1239
  const skeleton = new Skeleton({
1240
1240
  shape: 'Text',
@@ -7594,6 +7594,7 @@ let DropDownTree = class DropDownTree extends Component {
7594
7594
  }
7595
7595
  else if (args.preventDefaultAction) {
7596
7596
  fields = args.fields;
7597
+ this.treeObj.element.classList.add('e-filtering');
7597
7598
  }
7598
7599
  else {
7599
7600
  if (this.treeDataType === 1) {
@@ -8998,7 +8999,9 @@ let DropDownTree = class DropDownTree extends Component {
8998
8999
  }
8999
9000
  if (this.isFilterRestore) {
9000
9001
  this.restoreFilterSelection();
9001
- this.isFilterRestore = false;
9002
+ if (!this.showSelectAll) {
9003
+ this.isFilterRestore = false;
9004
+ }
9002
9005
  }
9003
9006
  }
9004
9007
  restoreFilterSelection() {
@@ -9261,15 +9264,18 @@ let DropDownTree = class DropDownTree extends Component {
9261
9264
  this.ensurePlaceHolder();
9262
9265
  }
9263
9266
  if (this.showSelectAll && this.checkBoxElement) {
9267
+ const nodes = this.treeObj.element.querySelectorAll('li');
9264
9268
  const checkedNodes = this.treeObj.element.querySelectorAll('li[aria-checked=true]');
9265
9269
  const wrap = closest(this.checkBoxElement, '.' + CHECKBOXWRAP);
9266
- if (wrap && args.action === 'uncheck' && (args.isInteracted || checkedNodes.length === 0 || (!isNullOrUndefined(args.data[0]) && args.data[0].isChecked === 'false'))) {
9270
+ if ((wrap && args.action === 'uncheck' && (args.isInteracted || checkedNodes.length === 0 ||
9271
+ (!isNullOrUndefined(args.data[0]) && args.data[0].isChecked === 'false'))) || !args.isInteracted && this.isFilterRestore) {
9272
+ this.isFilterRestore = false;
9267
9273
  this.isReverseUpdate = true;
9268
9274
  this.changeState(wrap, 'uncheck');
9269
9275
  this.isReverseUpdate = false;
9270
9276
  }
9271
9277
  else if (wrap && args.action === 'check'
9272
- && checkedNodes.length === this.fields.dataSource.length
9278
+ && checkedNodes.length === nodes.length
9273
9279
  && (args.isInteracted || this.isCheckAllCalled || (!isNullOrUndefined(args.data[0]) && args.data[0].isChecked === 'true'))) {
9274
9280
  this.isReverseUpdate = true;
9275
9281
  this.isCheckAllCalled = false;
@@ -15620,7 +15626,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15620
15626
  this.list.scrollTop = 0;
15621
15627
  this.virtualListInfo = null;
15622
15628
  this.previousStartIndex = 0;
15623
- this.previousEndIndex = 0;
15629
+ this.previousEndIndex = this.itemCount;
15624
15630
  }
15625
15631
  this.isClearAllAction = false;
15626
15632
  }
@@ -17793,7 +17799,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
17793
17799
  this.viewPortInfo.endIndex : this.itemCount;
17794
17800
  this.virtualListInfo = this.viewPortInfo;
17795
17801
  this.previousStartIndex = 0;
17796
- this.previousEndIndex = 0;
17802
+ this.previousEndIndex = this.itemCount;
17797
17803
  }
17798
17804
  let dataSourceCount;
17799
17805
  if (this.dataSource instanceof DataManager) {
@@ -21215,7 +21221,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
21215
21221
  ctrlKey: e.ctrlKey, shiftKey: e.shiftKey
21216
21222
  });
21217
21223
  }
21218
- else if (e.keyCode === 65 && e.ctrlKey) {
21224
+ else if (e.keyCode === 65 && e.ctrlKey && this.selectionSettings.mode === 'Multiple') {
21219
21225
  this.selectAll();
21220
21226
  }
21221
21227
  else if ((e.keyCode === 38 || e.keyCode === 40) && e.ctrlKey && e.shiftKey) {