@syncfusion/ej2-treegrid 26.1.40 → 26.1.41

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.
@@ -3211,7 +3211,7 @@ function removeChildRecords(childRecords, modifiedData, action, key, control, is
3211
3211
  editedData.taskData[keys[parseInt(i.toString(), 10)]] =
3212
3212
  childRecords[parseInt(j.toString(), 10)][keys[parseInt(i.toString(), 10)]] =
3213
3213
  modifiedData[keys[parseInt(i.toString(), 10)]];
3214
- if (control.grid.editSettings.mode === 'Normal' && control.editSettings.mode === 'Cell') {
3214
+ if (control.grid.editSettings.mode === 'Normal' && control.editSettings.mode === 'Cell' && !isNullOrUndefined(control.grid.editModule)) {
3215
3215
  const editModule = 'editModule';
3216
3216
  control.grid.editModule[`${editModule}`].editRowIndex = modifiedData.index;
3217
3217
  control.grid.editModule[`${editModule}`].updateCurrentViewData(modifiedData);
@@ -9010,7 +9010,7 @@ class RowDD {
9010
9010
  for (let i = 0; i < dragLength; i++) {
9011
9011
  draggedRecord = dragRecords[parseInt(i.toString(), 10)];
9012
9012
  this.draggedRecord = draggedRecord;
9013
- if (this.dropPosition !== 'Invalid') {
9013
+ if (this.dropPosition !== 'Invalid' && !isNullOrUndefined(this.droppedRecord)) {
9014
9014
  if (!tObj.rowDropSettings.targetID || isByMethod) {
9015
9015
  this.deleteDragRow();
9016
9016
  }