Handling events when a link is not validated


I am curious how to handle events when a link is not validated before adding. For example, if you drag from the finish to the start of the same task, obviously that is an invalid link. The problem is that the library decides the link is invalid before onBeforeLinkAdd is called, and so I am unable to do anything, such as give an alert that the link is invalid.

Is there any way to do this?

seems like there is no way to trace that link.
As you can see from sources, the checking is hardcoded and link validation is never called in that case

github.com/DHTMLX/gantt/blob/v3 … t.js#L2980