@syncfusion/ej2-gantt 19.4.53 → 19.4.54

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.
@@ -479,7 +479,8 @@ var DateProcessor = /** @__PURE__ @class */ (function () {
479
479
  DateProcessor.prototype.calculateDuration = function (ganttData) {
480
480
  var ganttProperties = ganttData.ganttProperties;
481
481
  var tDuration;
482
- if (!isNullOrUndefined(ganttProperties.segments) && ganttProperties.segments.length > 0) {
482
+ if (!isNullOrUndefined(ganttProperties.segments) && ganttProperties.segments.length > 0 &&
483
+ !isNullOrUndefined(this.parent.editModule.taskbarEditModule)) {
483
484
  tDuration = this.parent.editModule.taskbarEditModule.sumOfDuration(ganttProperties.segments);
484
485
  }
485
486
  else {
@@ -16057,7 +16058,8 @@ var CellEdit = /** @__PURE__ @class */ (function () {
16057
16058
  if (!ganttRecord.ganttProperties.isAutoSchedule) {
16058
16059
  this.parent.setRecordValue('autoWidth', this.parent.dataOperation.calculateWidth(ganttRecord, false), ganttRecord.ganttProperties, true);
16059
16060
  }
16060
- if (!isNullOrUndefined(args.data.ganttProperties.segments) && args.data.ganttProperties.segments.length > 0) {
16061
+ if (!isNullOrUndefined(args.data.ganttProperties.segments) && args.data.ganttProperties.segments.length > 0 &&
16062
+ !isNullOrUndefined(this.parent.editModule.taskbarEditModule)) {
16061
16063
  this.parent.editModule.taskbarEditModule.updateSegmentProgress(args.data.ganttProperties);
16062
16064
  }
16063
16065
  if (!args.data.hasChildRecords) {
@@ -27651,7 +27653,13 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
27651
27653
  }
27652
27654
  else {
27653
27655
  startIndex = droppedRecord.index;
27654
- endIndex = draggedRecord.index;
27656
+ var rootChildRecord = draggedRecord;
27657
+ if (rootChildRecord.childRecords.length > 0) {
27658
+ do {
27659
+ rootChildRecord = rootChildRecord.childRecords[rootChildRecord.childRecords.length - 1];
27660
+ } while (rootChildRecord.childRecords.length > 0);
27661
+ }
27662
+ endIndex = rootChildRecord.index;
27655
27663
  }
27656
27664
  var _loop_2 = function (i_1) {
27657
27665
  if (!isNullOrUndefined(data_1[i_1])) {