@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.
@@ -11361,10 +11361,11 @@ class BatchEdit {
11361
11361
  let data;
11362
11362
  let childs;
11363
11363
  let uid;
11364
- if (!isNullOrUndefined(args.row) && this.parent.getSelectedRows().indexOf(args.row) === -1) {
11364
+ const rowElement = Array.isArray(args.row) ? args.row[0] : args.row;
11365
+ if (!isNullOrUndefined(rowElement) && this.parent.getSelectedRows().indexOf(rowElement) === -1) {
11365
11366
  data = args.rowData;
11366
11367
  childs = findChildrenRecords(data);
11367
- uid = args.row.getAttribute('data-uid');
11368
+ uid = rowElement.getAttribute('data-uid');
11368
11369
  }
11369
11370
  else {
11370
11371
  data = this.parent.grid.getSelectedRecords()[this.parent.grid.getSelectedRecords().length - 1];
@@ -12404,7 +12405,7 @@ class Edit {
12404
12405
  args.cancel = true;
12405
12406
  return;
12406
12407
  }
12407
- if (this.doubleClickTarget && (this.doubleClickTarget.classList.contains('e-treegridexpand') ||
12408
+ if (this.doubleClickTarget && args.requestType !== 'delete' && (this.doubleClickTarget.classList.contains('e-treegridexpand') ||
12408
12409
  this.doubleClickTarget.classList.contains('e-treegridcollapse') || this.doubleClickTarget.classList.contains('e-frame'))) {
12409
12410
  args.cancel = true;
12410
12411
  this.doubleClickTarget = null;