@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.
@@ -13335,7 +13335,7 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
13335
13335
  return;
13336
13336
  }
13337
13337
  if (this.parent.editModule['isAddedRowByMethod'] && !isNullOrUndefined(this.parent.editModule['addRowIndex']) &&
13338
- !this.parent.editModule['isAddedRowByContextMenu'] && (this.parent.grid.selectedRowIndex === -1 || this.parent.editModule['batchEditModule'].isAdd)) {
13338
+ !this.parent.editModule['isAddedRowByContextMenu'] && (this.parent.editModule['selectedIndex'] >= 0 || this.parent.editModule['batchEditModule'].isAdd)) {
13339
13339
  this.selectedIndex = this.parent.editModule['selectedIndex'];
13340
13340
  this.addRowIndex = this.parent.editModule['addRowIndex'];
13341
13341
  this.addRowRecord = this.batchRecords.length ? this.batchRecords[this.selectedIndex]
@@ -13710,6 +13710,9 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
13710
13710
  if (this.parent.editModule['isAddedRowByContextMenu']) {
13711
13711
  this.parent.editModule['isAddedRowByContextMenu'] = false;
13712
13712
  }
13713
+ if (this.parent.editModule['isAddedRowByMethod']) {
13714
+ this.parent.editModule['isAddedRowByMethod'] = false;
13715
+ }
13713
13716
  };
13714
13717
  BatchEdit.prototype.getActualRowObjectIndex = function (index) {
13715
13718
  var rows = this.parent.grid.getDataRows();