@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.
@@ -1992,7 +1992,8 @@ var Render = /** @__PURE__ @class */ (function () {
1992
1992
  var cellIndex = _this.parent.grid.getNormalizedColumnIndex(columnUid);
1993
1993
  if (rows.length !== 0) {
1994
1994
  for (var j = 0; j < rowsObj.length; j++) {
1995
- if (rowsObj[parseInt(j.toString(), 10)].isDataRow && !isNullOrUndefined(rowsObj[parseInt(j.toString(), 10)].index)) {
1995
+ if (rowsObj[parseInt(j.toString(), 10)].isDataRow
1996
+ && !isNullOrUndefined(rowsObj[parseInt(j.toString(), 10)].index)) {
1996
1997
  var cell = rowsObj[parseInt(j.toString(), 10)]["" + cells][parseInt(cellIndex.toString(), 10)];
1997
1998
  var cellRenderer = new CellRenderer(_this.parent.grid, _this.parent.grid.serviceLocator);
1998
1999
  var td = _this.parent.getCellFromIndex(rowsObj[parseInt(j.toString(), 10)].index, cellIndex - indent);
@@ -7191,7 +7192,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7191
7192
  }
7192
7193
  };
7193
7194
  TreeGrid.prototype.collapseRemoteChild = function (rowDetails, isChild) {
7194
- if (!isChild) {
7195
+ if (!isNullOrUndefined(isChild) && !isChild && !this.loadChildOnDemand) {
7195
7196
  rowDetails.record.expanded = false;
7196
7197
  }
7197
7198
  var rows = rowDetails.rows;
@@ -7858,7 +7859,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7858
7859
  Property(false)
7859
7860
  ], TreeGrid.prototype, "enableColumnVirtualization", void 0);
7860
7861
  __decorate([
7861
- Property(true)
7862
+ Property(false)
7862
7863
  ], TreeGrid.prototype, "enableHtmlSanitizer", void 0);
7863
7864
  __decorate([
7864
7865
  Property(false)
@@ -9689,7 +9690,8 @@ var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
9689
9690
  var rows = _super.prototype.generateRows.call(this, data, notifyArgs);
9690
9691
  if (!isNullOrUndefined((this.visualData))) {
9691
9692
  for (var r = 0; r < rows.length; r++) {
9692
- rows[parseInt(r.toString(), 10)].index = (this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
9693
+ rows[parseInt(r.toString(), 10)].index =
9694
+ (this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
9693
9695
  }
9694
9696
  }
9695
9697
  return rows;
@@ -13454,13 +13456,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13454
13456
  firsttdinx = +attr; // this.parent.getContent().querySelector('.e-content tr').getAttribute('data-rowindex');
13455
13457
  }
13456
13458
  if (firsttdinx === 0) {
13457
- scrollArgs.offset.top = content$$1.scrollTop;
13458
- if (this.parent.allowRowDragAndDrop) {
13459
- this.translateY = scrollArgs.offset.top - rowHeight * 2;
13460
- }
13461
- else {
13462
- this.translateY = scrollArgs.offset.top;
13463
- }
13459
+ this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
13460
+ scrollArgs.offset.top - (outBuffer * this.parent.getRowHeight()) + 10 : 0;
13464
13461
  }
13465
13462
  else {
13466
13463
  this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?