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

New prop for disabling draggable #27

Open
chrisjpatty opened this issue Apr 2, 2018 · 1 comment
Open

New prop for disabling draggable #27

chrisjpatty opened this issue Apr 2, 2018 · 1 comment
Labels

Comments

@chrisjpatty
Copy link
Owner

I've found in my use-case scenarios that it would be nice to pass a boolean prop to the <Draggable/> that could disable it. This is especially useful in cases where a child of the Draggable also needs to be able to handle click or tap events.

@sisp
Copy link

sisp commented Apr 6, 2018

I'm having a similar case with nested draggables/droppables. My workaround is to inject event.stopPropagation() into onMouseDown/onTouchStart callbacks of <Draggable /> and into onMouseEnter/onMouseLeave callbacks of <Droppable />.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants