@syncfusion/ej2-treegrid 21.1.35 → 21.1.37

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.
@@ -3974,7 +3974,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
3974
3974
  IsExpandCollapseClicked(args) {
3975
3975
  if (!isNullOrUndefined(args.target) && (args.target.classList.contains('e-treegridexpand')
3976
3976
  || args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell'))
3977
- && (!isNullOrUndefined(args.data) && args.data['hasChildRecords'])) {
3977
+ && (!isNullOrUndefined(args.data) && args.data['hasChildRecords']) && !this.selectionSettings.checkboxOnly) {
3978
3978
  args.cancel = true;
3979
3979
  return;
3980
3980
  }
@@ -8386,13 +8386,14 @@ class RowDD$1 {
8386
8386
  const childRecords = rec[0].childRecords;
8387
8387
  const droppedRecordIndex = childRecords.indexOf(droppedRecord) + 1;
8388
8388
  childRecords.splice(droppedRecordIndex, 0, draggedRecord);
8389
- draggedRecord.parentItem = droppedRecord.parentItem;
8389
+ if (this.parent.enableImmutableMode || this.parent['isIndentEnabled'] && !this.parent.parentIdMapping) {
8390
+ draggedRecord.parentItem = droppedRecord.parentItem;
8391
+ draggedRecord.level = droppedRecord.level;
8392
+ }
8390
8393
  draggedRecord.parentUniqueID = droppedRecord.parentUniqueID;
8391
- draggedRecord.level = droppedRecord.level;
8392
8394
  if (this.parent.parentIdMapping) {
8393
8395
  draggedRecord[this.parent.parentIdMapping] = droppedRecord[this.parent.parentIdMapping];
8394
- draggedRecord.parentItem = droppedRecord.parentItem;
8395
- draggedRecord.level = droppedRecord.level;
8396
+ draggedRecord.parentUniqueID = droppedRecord.parentUniqueID;
8396
8397
  }
8397
8398
  }
8398
8399
  if (draggedRecord.hasChildRecords) {