@syncfusion/ej2-treegrid 20.3.47 → 20.3.48

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.
@@ -3973,12 +3973,12 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3973
3973
  this.trigger(getObject('name', args), args);
3974
3974
  };
3975
3975
  TreeGrid.prototype.IsExpandCollapseClicked = function (args) {
3976
- if (args['name'] === "rowSelecting" && !isNullOrUndefined(args.target) && (args.target.classList.contains('e-treegridexpand')
3976
+ if (args['name'] === 'rowSelecting' && !isNullOrUndefined(args.target) && (args.target.classList.contains('e-treegridexpand')
3977
3977
  || args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell')) && (isNullOrUndefined(args['previousRowIndex']))) {
3978
3978
  args.cancel = true;
3979
3979
  return;
3980
3980
  }
3981
- else if (args['name'] === "rowDeselecting" && !isNullOrUndefined(args.target) && ((!isNullOrUndefined(args.row) && (!args.row.length)) && (args.target.classList.contains('e-treegridexpand')
3981
+ else if (args['name'] === 'rowDeselecting' && !isNullOrUndefined(args.target) && ((!isNullOrUndefined(args.row) && (!args.row.length)) && (args.target.classList.contains('e-treegridexpand')
3982
3982
  || args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell')))) {
3983
3983
  args.cancel = true;
3984
3984
  return;
@@ -11170,6 +11170,10 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11170
11170
  }
11171
11171
  this.updateGridEditMode('Batch');
11172
11172
  }
11173
+ else if (this.parent.editSettings.mode === 'Cell' && (!column.allowEditing || column.isPrimaryKey)) {
11174
+ this.isOnBatch = true;
11175
+ this.updateGridEditMode('Batch');
11176
+ }
11173
11177
  };
11174
11178
  Edit$$1.prototype.updateGridEditMode = function (mode) {
11175
11179
  this.parent.grid.setProperties({ editSettings: { mode: mode } }, true);
@@ -11846,7 +11850,12 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11846
11850
  }
11847
11851
  index = (childRecordCount1 > 0) ? (currentDataIndex1 + childRecordCount1) : (currentDataIndex1);
11848
11852
  if (this.isSelfReference) {
11849
- value.taskData[this.parent.parentIdMapping] = value[this.parent.parentIdMapping] = idMapping;
11853
+ if (!this.parent.isLocalData && this.parent.editModule.selectedIndex === -1) {
11854
+ value.taskData[this.parent.parentIdMapping] = value[this.parent.parentIdMapping] = null;
11855
+ }
11856
+ else {
11857
+ value.taskData[this.parent.parentIdMapping] = value[this.parent.parentIdMapping] = idMapping;
11858
+ }
11850
11859
  if (!isNullOrUndefined(value.parentItem)) {
11851
11860
  updateParentRow(key, value.parentItem, 'add', this.parent, this.isSelfReference, value);
11852
11861
  }