Is it possible to disable default behaviour of onDrop? I don’t want a new node to be added.
You can
return false
in the end of this event
Unfortunately it still creates the object in the tree.
Besides - onDrop fires onSelect as well - is it possible to disable it?
So, if you need to prevent drag, you can return false from onDrag event.
If you need to cleadr selection, you can use method
tree2.clearSelection(id);
onSelect event musn’t be triggered