@syncfusion/ej2-treegrid 21.2.5 → 21.2.6

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.
@@ -6852,7 +6852,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6852
6852
  }
6853
6853
  }
6854
6854
  if (cRow.length && childRecord.expanded) {
6855
- this.collapseRemoteChild({ record: childRecord, rows: cRow }, true);
6855
+ this.collapseRemoteChild({ record: childRecord, rows: cRow }, false);
6856
6856
  }
6857
6857
  }
6858
6858
  }
@@ -13045,7 +13045,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13045
13045
  this.startIndex = (this.startIndex - remains) < 0 ? 0 : (this.startIndex - remains);
13046
13046
  }
13047
13047
  if (currentViewData.length && (currentViewData[0]["" + indexValue] >= this.parent.pageSettings.pageSize / 2) &&
13048
- ((currentViewData[0]["" + indexValue] - this.startIndex) < (this.parent.pageSettings.pageSize / 2))) {
13048
+ ((currentViewData[0]["" + indexValue] - this.startIndex) < (this.parent.pageSettings.pageSize / 2)) && this.parent.selectionModule.isRowSelected) {
13049
13049
  this.startIndex = currentViewData[0]["" + indexValue] - (this.parent.pageSettings.pageSize / 2);
13050
13050
  this.endIndex = this.startIndex + this.parent.pageSettings.pageSize;
13051
13051
  }
@@ -13087,7 +13087,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13087
13087
  this.startIndex = !isLastBlock ? lastIndex - this.parent.pageSettings.pageSize : nextSetResIndex;
13088
13088
  this.endIndex = lastIndex;
13089
13089
  if (currentViewData.length && this.startIndex > currentViewData[0]["" + indexValue] &&
13090
- ((this.startIndex - currentViewData[0]["" + indexValue]) < (this.parent.pageSettings.pageSize / 2))) {
13090
+ ((this.startIndex - currentViewData[0]["" + indexValue]) < (this.parent.pageSettings.pageSize / 2)) && this.parent.selectionModule.isRowSelected) {
13091
13091
  this.startIndex = currentViewData[0]["" + indexValue] + (this.parent.pageSettings.pageSize / 2);
13092
13092
  }
13093
13093
  if (scrollArgs.offset.top > (rowHeight * this.totalRecords)) {