@syncfusion/ej2-treegrid 33.1.49 → 33.2.8

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.
@@ -2725,13 +2725,10 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2725
2725
  // }
2726
2726
  DataManipulation.prototype.selfReferenceUpdate = function (selfData) {
2727
2727
  var result = [];
2728
- while (this.hierarchyData.length > 0 && selfData.length > 0) {
2729
- var index = selfData.indexOf(this.hierarchyData[0]);
2730
- if (index === -1) {
2731
- this.hierarchyData.shift();
2732
- }
2733
- else {
2734
- result.push(this.hierarchyData.shift());
2728
+ for (var i = 0; i < this.hierarchyData.length && selfData.length > 0; i++) {
2729
+ var index = selfData.indexOf(this.hierarchyData[parseInt(i.toString(), 10)]);
2730
+ if (index !== -1) {
2731
+ result.push(this.hierarchyData[parseInt(i.toString(), 10)]);
2735
2732
  selfData.splice(index, 1);
2736
2733
  }
2737
2734
  }
@@ -5137,7 +5134,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5137
5134
  var portals = 'portals';
5138
5135
  if (!(_this.isReact && isNullOrUndefined(_this["" + portals]))) {
5139
5136
  var isGantt = _this['isFromGantt'] && !isNullOrUndefined(_this['root'].clearTemplate) &&
5140
- _this['root'].chartRowsModule['isGridRowRefreshed'];
5137
+ (_this['root'].chartRowsModule['isGridRowRefreshed'] || _this['root']['registeredTemplate']);
5141
5138
  if (isGantt) {
5142
5139
  _this['root'].clearTemplate(args, index, callback);
5143
5140
  }
@@ -15972,7 +15969,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
15972
15969
  var index = scrolledRows + visibleRows - this.parent.pageSettings.pageSize;
15973
15970
  index = (index > 0) ? index : 0;
15974
15971
  if (!isNullOrUndefined(this["" + selectedRowIndex]) && this["" + selectedRowIndex] !== -1 && index !== this["" + selectedRowIndex] &&
15975
- ((this.parent.rowHeight * this.parent.pageSettings.pageSize) < content.scrollTop) && !this.parent.allowRowDragAndDrop) {
15972
+ (this.parent.rowHeight && ((this.parent.rowHeight * this.parent.pageSettings.pageSize) < content.scrollTop)) &&
15973
+ !this.parent.allowRowDragAndDrop) {
15976
15974
  index = this["" + selectedRowIndex];
15977
15975
  }
15978
15976
  this.startIndex = index;