JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.63k stars 4.13k forks source link

Interacting with options triggers hover effect on a button underneath. #5683

Open eokrrp opened 1 year ago

eokrrp commented 1 year ago

Hey!

I've got an issue. Let's assume we have two components - a select and a button. The button lies to the bottom of the select. When you open the select, its option list covers this button. If you click on an option that lies just on top of that button, the button gets hover effect and it doesn't "stop" unless you click again on the screen.

Note: the issue is reproduced only on touch devices, particularly in Safari. Doesn't reproduce in Chrome.

Sandbox: https://codesandbox.io/s/codesandboxer-example-forked-nr4qnf?file=/example.tsx