@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 32.2.3
3
+ * version : 32.2.4
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-treegrid",
3
- "version": "32.2.3",
3
+ "version": "32.2.4",
4
4
  "description": "Essential JS 2 TreeGrid Component",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -11,7 +11,7 @@
11
11
  "@syncfusion/ej2-base": "~32.2.3",
12
12
  "@syncfusion/ej2-data": "~32.2.3",
13
13
  "@syncfusion/ej2-grids": "~32.2.3",
14
- "@syncfusion/ej2-popups": "~32.2.3"
14
+ "@syncfusion/ej2-popups": "~32.2.4"
15
15
  },
16
16
  "devDependencies": {},
17
17
  "keywords": [
@@ -228,7 +228,7 @@ var BatchEdit = /** @class */ (function () {
228
228
  return;
229
229
  }
230
230
  if (this.parent.editModule['isAddedRowByMethod'] && !isNullOrUndefined(this.parent.editModule['addRowIndex']) &&
231
- !this.parent.editModule['isAddedRowByContextMenu'] && (this.parent.grid.selectedRowIndex === -1 || this.parent.editModule['batchEditModule'].isAdd)) {
231
+ !this.parent.editModule['isAddedRowByContextMenu'] && (this.parent.editModule['selectedIndex'] >= 0 || this.parent.editModule['batchEditModule'].isAdd)) {
232
232
  this.selectedIndex = this.parent.editModule['selectedIndex'];
233
233
  this.addRowIndex = this.parent.editModule['addRowIndex'];
234
234
  this.addRowRecord = this.batchRecords.length ? this.batchRecords[this.selectedIndex]
@@ -603,6 +603,9 @@ var BatchEdit = /** @class */ (function () {
603
603
  if (this.parent.editModule['isAddedRowByContextMenu']) {
604
604
  this.parent.editModule['isAddedRowByContextMenu'] = false;
605
605
  }
606
+ if (this.parent.editModule['isAddedRowByMethod']) {
607
+ this.parent.editModule['isAddedRowByMethod'] = false;
608
+ }
606
609
  };
607
610
  BatchEdit.prototype.getActualRowObjectIndex = function (index) {
608
611
  var rows = this.parent.grid.getDataRows();