@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.
@@ -3467,7 +3467,7 @@ function removeChildRecords(childRecords, modifiedData, action, key, control, is
3467
3467
  editedData.taskData[keys[parseInt(i.toString(), 10)]] =
3468
3468
  childRecords[parseInt(j.toString(), 10)][keys[parseInt(i.toString(), 10)]] =
3469
3469
  modifiedData[keys[parseInt(i.toString(), 10)]];
3470
- if (control.grid.editSettings.mode === 'Normal' && control.editSettings.mode === 'Cell') {
3470
+ if (control.grid.editSettings.mode === 'Normal' && control.editSettings.mode === 'Cell' && !isNullOrUndefined(control.grid.editModule)) {
3471
3471
  var editModule = 'editModule';
3472
3472
  control.grid.editModule["" + editModule].editRowIndex = modifiedData.index;
3473
3473
  control.grid.editModule["" + editModule].updateCurrentViewData(modifiedData);
@@ -9349,7 +9349,7 @@ var RowDD = /** @__PURE__ @class */ (function () {
9349
9349
  var _loop_1 = function (i) {
9350
9350
  draggedRecord_2 = dragRecords[parseInt(i.toString(), 10)];
9351
9351
  this_1.draggedRecord = draggedRecord_2;
9352
- if (this_1.dropPosition !== 'Invalid') {
9352
+ if (this_1.dropPosition !== 'Invalid' && !isNullOrUndefined(this_1.droppedRecord)) {
9353
9353
  if (!tObj.rowDropSettings.targetID || isByMethod) {
9354
9354
  this_1.deleteDragRow();
9355
9355
  }