Skip to content
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 drop based on certain criteria #123

Open
frankbolviken opened this issue Dec 6, 2021 · 1 comment
Open

Cancel drop based on certain criteria #123

frankbolviken opened this issue Dec 6, 2021 · 1 comment
Labels
question Question about the library and/or its usage

Comments

@frankbolviken
Copy link

I have some requirements like that an item cannot be dropped if certain criteria are not met based on the dragged item and the position it is dropped to. Is it possible to implement something like this with the current solution?

@lafiosca
Copy link
Contributor

lafiosca commented Dec 6, 2021

I think there may be more than one way to accomplish this based on the specifics of your situation. I would consider seeing if you can dynamically set the receptive prop to false depending on what’s being dragged, using the drag lifecycle events on the dragged items or a monitor to determine that.

@lafiosca lafiosca added the question Question about the library and/or its usage label Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about the library and/or its usage
Projects
None yet
Development

No branches or pull requests

2 participants