@syncfusion/ej2-treegrid 32.1.19 → 32.1.21

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.
@@ -5168,7 +5168,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5168
5168
  if (RecordsCount === 0 && this.columns.length === 0) {
5169
5169
  failureCases.push('Either of the Data source or columns should be given.');
5170
5170
  }
5171
- if (this.frozenColumns > 0 && this.columnModel.filter(function (col) { return col.isFrozen; })) {
5171
+ if (this.frozenColumns > 0 && this.columnModel.filter(function (col) { return col.isFrozen; }).length > 0) {
5172
5172
  failureCases.push('Use only one attribute for Frozen either IsFrozen or FrozenColumns.');
5173
5173
  }
5174
5174
  if (this.enableVirtualization && !isNullOrUndefined(this.detailTemplate)) {
@@ -5178,7 +5178,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5178
5178
  && (!isNullOrUndefined(this.detailTemplate) || !isNullOrUndefined(this.rowTemplate))) {
5179
5179
  failureCases.push('Frozen rows and columns are not supported with the Detail template and row template.');
5180
5180
  }
5181
- if ((this.frozenColumns > 0 || this.columnModel.filter(function (col) { return col.isFrozen; }).length > 0 || this.frozenRows > 0) && this.editSettings.mode === 'Cell') {
5181
+ if ((this.frozenColumns > 0 || this.columnModel.filter(function (col) { return col.isFrozen; }).length > 0 || this.frozenRows > 0) && this.editSettings.allowEditing && this.editSettings.mode === 'Cell') {
5182
5182
  failureCases.push('Frozen rows and columns are not supported with cell editing.');
5183
5183
  }
5184
5184
  if (this.allowSelection && !isNullOrUndefined(this.rowTemplate)) {
@@ -15113,7 +15113,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
15113
15113
  */
15114
15114
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
15115
15115
  VirtualTreeContentRenderer.prototype.getRowCollection = function (index, isMovable, isRowObject, isFrozenRight) {
15116
- var startIdx = parseInt(this.parent.getRows()[0].getAttribute(ariaRowIndex), 10) - 1;
15116
+ var rows = this.parent.getRows();
15117
+ var startIdx = rows.length > 0 ? parseInt(rows[0].getAttribute(ariaRowIndex), 10) - 1 : 0;
15117
15118
  var rowCollection = this.parent.getDataRows();
15118
15119
  var collection = isRowObject ? this.parent.getCurrentViewRecords() : rowCollection;
15119
15120
  var selectedRow = collection[index - startIdx];