@syncfusion/ej2-treegrid 20.2.43 → 20.2.44

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.
@@ -724,7 +724,7 @@ function findChildrenRecords(records) {
724
724
  return [];
725
725
  }
726
726
  if (!isNullOrUndefined(records.childRecords)) {
727
- const childRecords = records.childRecords.filter(items => !items.isSummaryRow);
727
+ const childRecords = records.childRecords.filter((item) => !item.isSummaryRow);
728
728
  const keys = Object.keys(childRecords);
729
729
  for (let i = 0, len = keys.length; i < len; i++) {
730
730
  datas.push(childRecords[i]);
@@ -8557,7 +8557,8 @@ class Filter$1 {
8557
8557
  }
8558
8558
  }
8559
8559
  else {
8560
- if (parent['expanded'] === false && this.parent.getVisibleRecords().indexOf(record) === -1 && isNullOrUndefined(this.parent['dataResults']['action'])) {
8560
+ if ((!this.parent.enableCollapseAll || !this.parent.initialRender && isNullOrUndefined(this.parent['dataResults']['result']))
8561
+ && parent['expanded'] === false && this.parent.getVisibleRecords().indexOf(record) === -1) {
8561
8562
  this.parent.expandRow(this.parent.getRows()[parent['index']], parent);
8562
8563
  }
8563
8564
  this.addParentRecord(parent);
@@ -10097,7 +10098,8 @@ class BatchEdit {
10097
10098
  !this.parent.editModule['isAddedRowByContextMenu'] && (this.parent.grid.selectedRowIndex === -1 || this.parent.editModule['batchEditModule'].isAdd)) {
10098
10099
  this.selectedIndex = this.parent.editModule['selectedIndex'];
10099
10100
  this.addRowIndex = this.parent.editModule['addRowIndex'];
10100
- this.addRowRecord = this.batchRecords.length ? this.batchRecords[this.selectedIndex] : this.parent.getCurrentViewRecords()[this.selectedIndex];
10101
+ this.addRowRecord = this.batchRecords.length ? this.batchRecords[this.selectedIndex]
10102
+ : this.parent.getCurrentViewRecords()[this.selectedIndex];
10101
10103
  }
10102
10104
  else {
10103
10105
  this.selectedIndex = this.parent.grid.selectedRowIndex;