@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.
@@ -4243,7 +4243,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4243
4243
  TreeGrid.prototype.IsExpandCollapseClicked = function (args) {
4244
4244
  if (!isNullOrUndefined(args.target) && (args.target.classList.contains('e-treegridexpand')
4245
4245
  || args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell'))
4246
- && (!isNullOrUndefined(args.data) && args.data['hasChildRecords'])) {
4246
+ && (!isNullOrUndefined(args.data) && args.data['hasChildRecords']) && !this.selectionSettings.checkboxOnly) {
4247
4247
  args.cancel = true;
4248
4248
  return;
4249
4249
  }
@@ -8699,13 +8699,14 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8699
8699
  var childRecords = rec[0].childRecords;
8700
8700
  var droppedRecordIndex = childRecords.indexOf(droppedRecord) + 1;
8701
8701
  childRecords.splice(droppedRecordIndex, 0, draggedRecord_2);
8702
- draggedRecord_2.parentItem = droppedRecord.parentItem;
8702
+ if (this_1.parent.enableImmutableMode || this_1.parent['isIndentEnabled'] && !this_1.parent.parentIdMapping) {
8703
+ draggedRecord_2.parentItem = droppedRecord.parentItem;
8704
+ draggedRecord_2.level = droppedRecord.level;
8705
+ }
8703
8706
  draggedRecord_2.parentUniqueID = droppedRecord.parentUniqueID;
8704
- draggedRecord_2.level = droppedRecord.level;
8705
8707
  if (this_1.parent.parentIdMapping) {
8706
8708
  draggedRecord_2[this_1.parent.parentIdMapping] = droppedRecord[this_1.parent.parentIdMapping];
8707
- draggedRecord_2.parentItem = droppedRecord.parentItem;
8708
- draggedRecord_2.level = droppedRecord.level;
8709
+ draggedRecord_2.parentUniqueID = droppedRecord.parentUniqueID;
8709
8710
  }
8710
8711
  }
8711
8712
  if (draggedRecord_2.hasChildRecords) {