Hi,
Can we prevent users from dragging and dropping tasks to the root of the hierarchy in React Gantt while still allowing them to drag and drop tasks to other tasks in the hierarchy?
In the old ExtJS Gantt we could drop a task on top of another task to make it a child, but that's not how it works in React Gantt. If we want to drag and drop Task C to become a child of Task A (a root node) then all we can do is to drop Task C below Task A which makes Task C a root node. We can then indent Task C to make it a child of Task A, but the user might not do so. This potentially leaves us with Task C in the root which is invalid in our case.
Preferably we would like the old drag-and-drop behaviour back - where a task could be dropped ON TOP of other tasks to have it moved to the bottom of the task on which it was dropped. We don't support moving a task up/down within a parent (parentIndex) - in our use case tasks are always ordered by start date.
- Thanks