@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.
@@ -799,7 +799,7 @@ function findChildrenRecords(records) {
799
799
  return [];
800
800
  }
801
801
  if (!isNullOrUndefined(records.childRecords)) {
802
- var childRecords = records.childRecords.filter(function (items) { return !items.isSummaryRow; });
802
+ var childRecords = records.childRecords.filter(function (item) { return !item.isSummaryRow; });
803
803
  var keys = Object.keys(childRecords);
804
804
  for (var i = 0, len = keys.length; i < len; i++) {
805
805
  datas.push(childRecords[i]);
@@ -8885,7 +8885,8 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
8885
8885
  }
8886
8886
  }
8887
8887
  else {
8888
- if (parent['expanded'] === false && this.parent.getVisibleRecords().indexOf(record) === -1 && isNullOrUndefined(this.parent['dataResults']['action'])) {
8888
+ if ((!this.parent.enableCollapseAll || !this.parent.initialRender && isNullOrUndefined(this.parent['dataResults']['result']))
8889
+ && parent['expanded'] === false && this.parent.getVisibleRecords().indexOf(record) === -1) {
8889
8890
  this.parent.expandRow(this.parent.getRows()[parent['index']], parent);
8890
8891
  }
8891
8892
  this.addParentRecord(parent);
@@ -10446,7 +10447,8 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
10446
10447
  !this.parent.editModule['isAddedRowByContextMenu'] && (this.parent.grid.selectedRowIndex === -1 || this.parent.editModule['batchEditModule'].isAdd)) {
10447
10448
  this.selectedIndex = this.parent.editModule['selectedIndex'];
10448
10449
  this.addRowIndex = this.parent.editModule['addRowIndex'];
10449
- this.addRowRecord = this.batchRecords.length ? this.batchRecords[this.selectedIndex] : this.parent.getCurrentViewRecords()[this.selectedIndex];
10450
+ this.addRowRecord = this.batchRecords.length ? this.batchRecords[this.selectedIndex]
10451
+ : this.parent.getCurrentViewRecords()[this.selectedIndex];
10450
10452
  }
10451
10453
  else {
10452
10454
  this.selectedIndex = this.parent.grid.selectedRowIndex;