jodhman / react-eyedrop

Seamlessly integrate a static typed, fully-tested color-picking React component/hook!
24 stars 11 forks source link

user might want to pick the color of a button, how do i stop propagation of the click event? #84

Open 0x0wen opened 3 months ago

jodhman commented 2 months ago

Hmm... this should be easy to fix on your end, if you keep track of when the eyedropping is happening (keep a state that listens to react-eyedrop events) and disable the button's onClick.

Not sure how I would make it work from react-eyedrop's end.