Welcome to the React feedback portal. We’re happy you’re here! If you have feedback on how to improve the React, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hi!

I have been trying to create a Milestone from the AddDialog in the react Gantt control. But if I set a duration of 0, it defaults to a duration of 5.

I found that the problem may be in the file ej2-gantt/src/gantt/actions/edit.js :2176

if (!this.parent.allowUnscheduledTasks && !obj[taskModel.endDate] && taskModel.endDate) {
    if (!obj[taskModel.duration]) {  // HERE: if task duration is 0, it understands as if it haven't been setted
        var startDate = this.parent.dataOperation.getDateFromFormat(this.parent.projectStartDate);
        startDate.setDate(startDate.getDate() + 4);
        obj[taskModel.endDate] = this.parent.getFormatedDate(startDate, this.parent.getDateFormat());
    }
}

I would like to know if there is any way to avoid this.

Thanks