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!>
Thanks for joining our community and helping improve Syncfusion products!
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