@syncfusion/ej2-treegrid 25.1.38 → 25.1.39

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.
@@ -1834,7 +1834,8 @@ class Render {
1834
1834
  const cellIndex = this.parent.grid.getNormalizedColumnIndex(columnUid);
1835
1835
  if (rows.length !== 0) {
1836
1836
  for (let j = 0; j < rowsObj.length; j++) {
1837
- if (rowsObj[parseInt(j.toString(), 10)].isDataRow && !isNullOrUndefined(rowsObj[parseInt(j.toString(), 10)].index)) {
1837
+ if (rowsObj[parseInt(j.toString(), 10)].isDataRow
1838
+ && !isNullOrUndefined(rowsObj[parseInt(j.toString(), 10)].index)) {
1838
1839
  const cell = rowsObj[parseInt(j.toString(), 10)][`${cells}`][parseInt(cellIndex.toString(), 10)];
1839
1840
  const cellRenderer = new CellRenderer(this.parent.grid, this.parent.grid.serviceLocator);
1840
1841
  const td = this.parent.getCellFromIndex(rowsObj[parseInt(j.toString(), 10)].index, cellIndex - indent);
@@ -6862,7 +6863,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
6862
6863
  }
6863
6864
  }
6864
6865
  collapseRemoteChild(rowDetails, isChild) {
6865
- if (!isChild) {
6866
+ if (!isNullOrUndefined(isChild) && !isChild && !this.loadChildOnDemand) {
6866
6867
  rowDetails.record.expanded = false;
6867
6868
  }
6868
6869
  const rows = rowDetails.rows;
@@ -7525,7 +7526,7 @@ __decorate([
7525
7526
  Property(false)
7526
7527
  ], TreeGrid.prototype, "enableColumnVirtualization", void 0);
7527
7528
  __decorate([
7528
- Property(true)
7529
+ Property(false)
7529
7530
  ], TreeGrid.prototype, "enableHtmlSanitizer", void 0);
7530
7531
  __decorate([
7531
7532
  Property(false)
@@ -9312,7 +9313,8 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
9312
9313
  const rows = super.generateRows(data, notifyArgs);
9313
9314
  if (!isNullOrUndefined((this.visualData))) {
9314
9315
  for (let r = 0; r < rows.length; r++) {
9315
- rows[parseInt(r.toString(), 10)].index = (this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
9316
+ rows[parseInt(r.toString(), 10)].index =
9317
+ (this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
9316
9318
  }
9317
9319
  }
9318
9320
  return rows;
@@ -13025,13 +13027,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
13025
13027
  firsttdinx = +attr; // this.parent.getContent().querySelector('.e-content tr').getAttribute('data-rowindex');
13026
13028
  }
13027
13029
  if (firsttdinx === 0) {
13028
- scrollArgs.offset.top = content$$1.scrollTop;
13029
- if (this.parent.allowRowDragAndDrop) {
13030
- this.translateY = scrollArgs.offset.top - rowHeight * 2;
13031
- }
13032
- else {
13033
- this.translateY = scrollArgs.offset.top;
13034
- }
13030
+ this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
13031
+ scrollArgs.offset.top - (outBuffer * this.parent.getRowHeight()) + 10 : 0;
13035
13032
  }
13036
13033
  else {
13037
13034
  this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?