You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In using sl-vue-tree in my app, I have concluded that it's sometimes necessary to terminate dragging without dropping the draggingNodes anywhere. Sometimes I have inadvertently found dragging to be triggered and there's currently no way to terminate it. In another scenario, I initiate dragging but then change my mind, and I would just like to revert to the pre-dragging hierarchy.
I would happily submit a PR for this, but would like to understand if
you agree that it's desirable
you have a preference as to how it should be done, options I can think of (you may have other ideas too) include:
a) hit the keyboard escape key
b) drop the dragging nodes left or right of the bounding box
c.) drop the dragging nodes above or below the bounding box, sufficiently far removed that it's not interpreted as a drop 'before' the first node or 'after' the last node.
The text was updated successfully, but these errors were encountered:
Hi. That's a good proposal. I like the idea to have an ESC key to cancel the dragging by default. However, the key should be customizable. The closest PR for adding a new key handler is #13 . Other options are good too, but not for the default behavior.
Hi, i need this feature, because i want to show confirmation window, where user can cancel dragged item and return it back to previous position. I have idea how to do it, but i can't figure out, how to change path for item, this:
In using sl-vue-tree in my app, I have concluded that it's sometimes necessary to terminate dragging without dropping the draggingNodes anywhere. Sometimes I have inadvertently found dragging to be triggered and there's currently no way to terminate it. In another scenario, I initiate dragging but then change my mind, and I would just like to revert to the pre-dragging hierarchy.
I would happily submit a PR for this, but would like to understand if
a) hit the keyboard escape key
b) drop the dragging nodes left or right of the bounding box
c.) drop the dragging nodes above or below the bounding box, sufficiently far removed that it's not interpreted as a drop 'before' the first node or 'after' the last node.
The text was updated successfully, but these errors were encountered: