@syncfusion/ej2-treegrid 23.1.39 → 23.1.43

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.
@@ -10927,10 +10927,6 @@ class BatchEdit {
10927
10927
  this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].data = added;
10928
10928
  this.newBatchRowAdded = false;
10929
10929
  }
10930
- if (this.parent.frozenColumns || this.parent.getFrozenColumns()
10931
- && this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].edit === 'add') {
10932
- merge(this.currentViewRecords[parseInt(rowObjectIndex.toString(), 10)], this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].changes);
10933
- }
10934
10930
  }
10935
10931
  }
10936
10932
  beforeBatchAdd(e) {
@@ -12721,8 +12717,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
12721
12717
  if (isNullOrUndefined(this.observer[`${containerRect}`])) {
12722
12718
  this.observer[`${containerRect}`] = this.observers[`${containerRect}`];
12723
12719
  }
12724
- if (isNullOrUndefined(this.parent['clipboardModule'].treeGridParent.editModule) || args.selectedIndex !== 0 ||
12725
- isNullOrUndefined(this.parent['clipboardModule'].treeGridParent.editModule['addRowIndex'])) {
12720
+ if (isNullOrUndefined(this.parent.clipboardModule['treeGridParent'].editModule) || args.selectedIndex !== 0 ||
12721
+ isNullOrUndefined(this.parent.clipboardModule['treeGridParent'].editModule['addRowIndex'])) {
12726
12722
  super[`${selectVirtualRow}`](args);
12727
12723
  }
12728
12724
  }
@@ -13318,7 +13314,12 @@ class VirtualScroll$1 {
13318
13314
  }
13319
13315
  this.expandCollapseRec = null;
13320
13316
  startIndex = startIndex < 0 ? 0 : startIndex;
13321
- pageingDetails.result = visualData.slice(startIndex, endIndex);
13317
+ if (endIndex === 0 && visualData.length > 0) {
13318
+ pageingDetails.result = visualData;
13319
+ }
13320
+ else {
13321
+ pageingDetails.result = visualData.slice(startIndex, endIndex);
13322
+ }
13322
13323
  this.prevstartIndex = startIndex;
13323
13324
  this.prevendIndex = endIndex;
13324
13325
  }
@@ -13444,7 +13445,7 @@ class Freeze$1 {
13444
13445
  dblClickHandler(e) {
13445
13446
  if (parentsUntil(e.target, 'e-rowcell') &&
13446
13447
  this.parent.grid.editSettings.allowEditOnDblClick && this.parent.editSettings.mode !== 'Cell' && (!e.target['classList'].contains('e-treegridcollapse') && !e.target['classList'].contains('e-treegridexpand'))) {
13447
- this.parent.grid.editModule.startEdit(parentsUntil(e.target, 'e-row'));
13448
+ this.parent.startEdit(parentsUntil(e.target, 'e-row'));
13448
13449
  }
13449
13450
  }
13450
13451
  dataBoundArg() {