-
Notifications
You must be signed in to change notification settings - Fork 35
[Bug] Dragging possible even if disabled #150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I guess, first, you selected some text, second, drag works because of selection text. try use css |
Thanks, it works when applied to element with class |
No. Someone use the drag handle button to trigger the drag, disabling selection may not work for this case. |
There's another unwanted behavior with drag & drop. If the node label is wrapped by an Example:
Why is that the case? |
It is about HTML Drag and Drop API. https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API |
Here's stated that images, links and texts are draggable by default because it's assumed that Could you add a hint in the documentation of |
ok. |
Thanks! One improvement: For text elements, |
Drag/drop is possible in Draggable trees even if it's disabled by
:disableDrag="true"
or:eachDraggable="<fcn>"
returningfalse
for each node.When trying to drag a children of the root node the first time, it doesn't work but if you try a second time, it will be possible. When dropping the dragged node, it will vanish.
Example code:
The text was updated successfully, but these errors were encountered: