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

Conflict when used within modal #202

Open
kilimandzharov opened this issue Jun 13, 2023 · 0 comments
Open

Conflict when used within modal #202

kilimandzharov opened this issue Jun 13, 2023 · 0 comments

Comments

@kilimandzharov
Copy link

kilimandzharov commented Jun 13, 2023

I use your HexColorPicker in modal, which can be swiped down on mobile devices. When I start dragging pointer down, modal thinks that I wanna swipe it. So I added event listener on the div container of HexColorPicker, which stops propagation of touch events. But this disables all the functionality of HexColorPicker. I suggest you to add second argument event to the onChange prop, like in react-color. If there is another way of avoiding this situation, write it down, if you can). Thanks for your time.

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

No branches or pull requests

1 participant