-
Notifications
You must be signed in to change notification settings - Fork 138
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
Cancel after drop? #5
Comments
I don't have any plans, but willing to look at a PR. Please be aware that we are still actively working on this module... many things may change. |
Alright, good to know. I have (somewhat inefficient) workarounds at the moment, but will probably do some work on a PR then in a while. |
I believe a |
Ok please add it . It will be very helpful . |
Currently the best way to prevent a drop is to set restrictive drop zones. I've found that this is all that is needed in most cases. That said a |
Hi! Is there any way to do this? As there's no 'onBeforeDrop' event right now, would it be difficult to implement this logic inside the 'onDrop' event? Thanks a lot, cheers! |
I came here for the same reason. I need make an HTTP request when dropping an item, but if something went wrong, I need to revert changes. The use case is as follows:
When I drop a food into a menu, food
EDIT: How I achieve this?on HTML container
TS:
|
You can achieve this using the So, something to the effect of:
|
@altschuler this method not working for me . |
@altschuler According the docs, when copy is set to true the drake.cancel(true) has no effect. @Hypercubed any idea how one can revert the item after drop or perform a check before the item is dropped? |
Hi, are there any plans or documentation to be able to cancel an ongoing drop from code?
(e.g when the underlying logic that handles the drop event goes wrong, and you want to put the item back to its original place/container)
The text was updated successfully, but these errors were encountered: