@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.
@@ -5164,7 +5164,7 @@ class GanttChart {
5164
5164
  const isTab = (e.action === 'tab') ? true : false;
5165
5165
  const nextElement = this.getNextElement($target, isTab, isInEditedState);
5166
5166
  this.tempNextElement = nextElement;
5167
- if (!isNullOrUndefined(nextElement['cellIndex'])) {
5167
+ if (!isNullOrUndefined(nextElement) && !isNullOrUndefined(nextElement['cellIndex'])) {
5168
5168
  if (this.parent.allowRowDragAndDrop) {
5169
5169
  this.childrenIndex = nextElement['cellIndex'];
5170
5170
  this.nextElementIndex = nextElement['cellIndex'] - 1;