@syncfusion/ej2-gantt 20.2.38 → 20.2.39

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.
@@ -29065,6 +29065,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
29065
29065
  var proxy = this.parent;
29066
29066
  var tempDataSource;
29067
29067
  var idx;
29068
+ var ganttFields = this.parent.taskFields;
29068
29069
  if (this.parent.dataSource instanceof DataManager) {
29069
29070
  tempDataSource = getValue('dataOperation.dataArray', this.parent);
29070
29071
  }
@@ -29073,7 +29074,12 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
29073
29074
  }
29074
29075
  if (tempDataSource.length > 0 && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem)) {
29075
29076
  for (var i = 0; i < Object.keys(tempDataSource).length; i++) {
29076
- if (tempDataSource[i][this.parent.taskFields.child] === droppedRecord.taskData[this.parent.taskFields.child]) {
29077
+ if (!isNullOrUndefined(droppedRecord.taskData[ganttFields.child]) &&
29078
+ tempDataSource[i][ganttFields.child] === droppedRecord.taskData[ganttFields.child]) {
29079
+ idx = i;
29080
+ }
29081
+ else if (isNullOrUndefined(droppedRecord.taskData[ganttFields.child]) &&
29082
+ droppedRecord.taskData[ganttFields.id] === tempDataSource[i][ganttFields.id]) {
29077
29083
  idx = i;
29078
29084
  }
29079
29085
  }