react-select: Cannot select menu items on mobile
I got on a bug preventing me from selecting any menu items on mobile only.
Turns out, selecting an item would trigger handleInputFocus with Select-input as target.
Removing the call to renderInput for non-searchable select fixed it.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 5
- Comments: 23 (1 by maintainers)
Commits related to this issue
- https://github.com/JedWatson/react-select/issues/1036 — committed to farmersdog/react-select by AlexSapoznikov 7 years ago
- fixing #1036 (cannot select option on mobile) with vitaminwater's solution — committed to DeBaum/react-select by deleted user 6 years ago
Fast click has a disable hook, add
needsclickclass to option element https://github.com/ftlabs/fastclick#ignore-certain-elements-with-needsclick@vitaminwater thanks so much for the help! It turned out to be a Fastclick issue, I had two installed at once (Meteor & React Fastclick) which somehow cancelled each other out.
react select is still not work on iPhone. I use latest version of react-select
I don’t know, but I cannot select even on desktop right now (Chrome/macOS)
@alexeykozlov07 / @JedWatson add
optionClassName="needsclick"worked for me (thx @idanwe )@MrYou0 @florentdestremau same as you guys
@mpigsley Well, at the time we decided to go with a different solution and currently we have rolled on our solution for it. Looking at the open issues and the open PRs, I assume the author is having quite a big backlog. So sorry, no, I did not get a PR ready.