JedWatson / react-select

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

onClick event is not fired for a multiValueLabel #5720

Closed flipflopapp closed 1 year ago

flipflopapp commented 1 year ago

Are you reporting a bug or runtime error?

Open this link in a desktop browser and on mobile browser. Clicking on the multi value label in react select produces a console log in case of desktop browser, but not in case of mobile browser.

Recorded video: https://codesandbox.io/s/pedantic-lalande-r6uhh?fontsize=14&file=/src/index.js:477-492

This means that onClick event is not fired for a MultiValueLabel on a mobile browser.

flipflopapp commented 1 year ago

PS .... If you can provide any workarounds or ideas on debugging this - please feel free to suggest.

flipflopapp commented 1 year ago

Found a duplicate issue https://github.com/JedWatson/react-select/issues/4401

flipflopapp commented 1 year ago

duplicate of https://github.com/JedWatson/react-select/issues/4000 and https://github.com/JedWatson/react-select/issues/4001