@syncfusion/ej2-treegrid 21.1.37 → 21.1.38

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.
@@ -1505,6 +1505,8 @@ class Render {
1505
1505
  !getExpandStatus(this.parent, args.data, this.parent.grid.getCurrentViewRecords());
1506
1506
  if (collapsed$$1) {
1507
1507
  args.row.style.display = 'none';
1508
+ const rowsObj = this.parent.grid.getRowsObject();
1509
+ rowsObj.filter((e) => e.uid === args.row.getAttribute('data-uid'))[0].visible = false;
1508
1510
  }
1509
1511
  }
1510
1512
  if (isRemoteData(this.parent) && !isOffline(this.parent)) {
@@ -1533,6 +1535,15 @@ class Render {
1533
1535
  args.row.style.display = 'none';
1534
1536
  }
1535
1537
  }
1538
+ const draggedRecord = 'draggedRecord';
1539
+ if (!isNullOrUndefined(this.parent.rowDragAndDropModule) && !isNullOrUndefined(this.parent.rowDragAndDropModule[`${draggedRecord}`])
1540
+ && this.parent.getContentTable().scrollHeight <= this.parent.getContent().clientHeight) {
1541
+ const lastRowBorder = 'lastRowBorder';
1542
+ const lastVisualData = this.parent.getVisibleRecords()[this.parent.getVisibleRecords().length - 1];
1543
+ if (lastVisualData.uniqueID === args.data.uniqueID && !isNullOrUndefined(args.row) && !args.row.cells[0].classList.contains('e-lastrowcell')) {
1544
+ this.parent[`${lastRowBorder}`](args.row, true);
1545
+ }
1546
+ }
1536
1547
  this.parent.trigger(rowDataBound, args);
1537
1548
  }
1538
1549
  /**
@@ -4182,6 +4193,11 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
4182
4193
  return callBackPromise;
4183
4194
  };
4184
4195
  this.grid.cellSelecting = (args) => {
4196
+ const actualTarget = 'actualTarget';
4197
+ const target = this.grid.selectionModule[`${actualTarget}`];
4198
+ if (!isNullOrUndefined(target) && (target.classList.contains('e-treegridexpand') || target.classList.contains('e-treegridcollapse'))) {
4199
+ args.cancel = true;
4200
+ }
4185
4201
  const callBackPromise = new Deferred();
4186
4202
  this.trigger(getObject('name', args), args, (cellselectingArgs) => {
4187
4203
  callBackPromise.resolve(cellselectingArgs);