@syncfusion/ej2-treegrid 32.2.3 → 32.2.4

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.
@@ -12889,7 +12889,7 @@ class BatchEdit {
12889
12889
  return;
12890
12890
  }
12891
12891
  if (this.parent.editModule['isAddedRowByMethod'] && !isNullOrUndefined(this.parent.editModule['addRowIndex']) &&
12892
- !this.parent.editModule['isAddedRowByContextMenu'] && (this.parent.grid.selectedRowIndex === -1 || this.parent.editModule['batchEditModule'].isAdd)) {
12892
+ !this.parent.editModule['isAddedRowByContextMenu'] && (this.parent.editModule['selectedIndex'] >= 0 || this.parent.editModule['batchEditModule'].isAdd)) {
12893
12893
  this.selectedIndex = this.parent.editModule['selectedIndex'];
12894
12894
  this.addRowIndex = this.parent.editModule['addRowIndex'];
12895
12895
  this.addRowRecord = this.batchRecords.length ? this.batchRecords[this.selectedIndex]
@@ -13253,6 +13253,9 @@ class BatchEdit {
13253
13253
  if (this.parent.editModule['isAddedRowByContextMenu']) {
13254
13254
  this.parent.editModule['isAddedRowByContextMenu'] = false;
13255
13255
  }
13256
+ if (this.parent.editModule['isAddedRowByMethod']) {
13257
+ this.parent.editModule['isAddedRowByMethod'] = false;
13258
+ }
13256
13259
  }
13257
13260
  getActualRowObjectIndex(index) {
13258
13261
  const rows = this.parent.grid.getDataRows();