react-dragtastic icon indicating copy to clipboard operation
react-dragtastic copied to clipboard

New prop for disabling draggable

Open chrisjpatty opened this issue 7 years ago • 1 comments
trafficstars

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.

chrisjpatty avatar Apr 02 '18 17:04 chrisjpatty

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 />.

sisp avatar Apr 06 '18 15:04 sisp