@syncfusion/ej2-gantt 20.4.49 → 20.4.50

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.
@@ -5210,7 +5210,7 @@ var GanttChart = /** @__PURE__ @class */ (function () {
5210
5210
  var isTab = (e.action === 'tab') ? true : false;
5211
5211
  var nextElement = this.getNextElement($target, isTab, isInEditedState);
5212
5212
  this.tempNextElement = nextElement;
5213
- if (!isNullOrUndefined(nextElement['cellIndex'])) {
5213
+ if (!isNullOrUndefined(nextElement) && !isNullOrUndefined(nextElement['cellIndex'])) {
5214
5214
  if (this.parent.allowRowDragAndDrop) {
5215
5215
  this.childrenIndex = nextElement['cellIndex'];
5216
5216
  this.nextElementIndex = nextElement['cellIndex'] - 1;