As the subject mentions, I use React BryntumGantt component and use the following codebase to the taskDragFeature which has a validatorFn() which returns true always. I set a calendar (nonWorkingTime over the weekends) for the projectModel and try to drag a task to the weekend. My entire project model is manuallyScheduled: true
. Despite all of this setting, the task can neither be dragged, nor does the afterTaskDrop
's listener params of valid
true (since validatorFn() returns true always).
project: {
... // each task and its children are `manuallyScheduled: true`
},
taskDragFeature: {
validatorFn: () => true,
},
listeners: {
afterTaskDrop: ({
valid,
}) => {
console.log(valid); // returns false on weekend drag and drop.
},
}