vue-jstree icon indicating copy to clipboard operation
vue-jstree copied to clipboard

Prevent Drop

Open christiancadieux2 opened this issue 7 years ago • 4 comments

More of a question: is there a way to prevent a drop. like return false in itemDropBefore() or something similar. could not get it to work. thanks

christiancadieux2 avatar Jul 21 '18 21:07 christiancadieux2

@zdy1988 is this possible yet? It would be good to prevent items from being dragged into files to prevent files from having children.

ToJen avatar Nov 13 '18 17:11 ToJen

handled mine with return draggingNode.data.label !== dropNode.data.label

ToJen avatar Nov 15 '18 20:11 ToJen

handled mine with return draggingNode.data.label !== dropNode.data.label

Where did you put this code? itemDropBefore ?

dindarm avatar Dec 19 '18 12:12 dindarm

I don't remember but I think it may have been that.

ToJen avatar Dec 19 '18 16:12 ToJen