@syncfusion/ej2-treegrid 27.1.48 → 27.1.50

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.
@@ -11765,10 +11765,11 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
11765
11765
  var data;
11766
11766
  var childs;
11767
11767
  var uid;
11768
- if (!isNullOrUndefined(args.row) && this.parent.getSelectedRows().indexOf(args.row) === -1) {
11768
+ var rowElement = Array.isArray(args.row) ? args.row[0] : args.row;
11769
+ if (!isNullOrUndefined(rowElement) && this.parent.getSelectedRows().indexOf(rowElement) === -1) {
11769
11770
  data = args.rowData;
11770
11771
  childs = findChildrenRecords(data);
11771
- uid = args.row.getAttribute('data-uid');
11772
+ uid = rowElement.getAttribute('data-uid');
11772
11773
  }
11773
11774
  else {
11774
11775
  data = this.parent.grid.getSelectedRecords()[this.parent.grid.getSelectedRecords().length - 1];
@@ -12812,7 +12813,7 @@ var Edit = /** @__PURE__ @class */ (function () {
12812
12813
  args.cancel = true;
12813
12814
  return;
12814
12815
  }
12815
- if (this.doubleClickTarget && (this.doubleClickTarget.classList.contains('e-treegridexpand') ||
12816
+ if (this.doubleClickTarget && args.requestType !== 'delete' && (this.doubleClickTarget.classList.contains('e-treegridexpand') ||
12816
12817
  this.doubleClickTarget.classList.contains('e-treegridcollapse') || this.doubleClickTarget.classList.contains('e-frame'))) {
12817
12818
  args.cancel = true;
12818
12819
  this.doubleClickTarget = null;