-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Dropdown not appearing on first click #1994
Comments
This is a known issue we've been tracking in #1980 I've updated that to be specific to the test that should have caught this, let's use this one to track actually fixing the bug. The information about dev vs. production environments is new - I hadn't realised that before. @jochenberger that may be useful information when debugging why the tests don't fail? |
Related PRs / issues for this bug: #1527 #1580 #1902 The problem will probably be somewhere around line 263 of Select.js |
See also #1986 |
OK looked into this further, and I can't reproduce the difference between production and development - @kuroshio can you give us any more information about that? Seems like the root cause is that Unfortunately I missed the implication when I merged #1527
However, clicking a select component (in my experience) will always open the menu. If we want to support being able to click the control without opening the menu, we should add another prop called @jonashaag @hakunin @lauterry would you like to comment on this? it would be great to better understand the use-case for the prop. |
@JedWatson the current prop I would suggest renaming this prop to openOnClick or a name that is more indicative of the described behaviour. (unless there are strong arguments to the contrary) |
@JedWatson My apologies, the same thing is now happening in development, different behaviour must have been due to browser cache |
@gwyneplaine: if we do that, then it should probably default to |
as @gwyneplaine mentioned, set |
@JedWatson We were using We've moved away from using select for that and essentially re-implemented select box behavior, but now we have control over it |
Done. There's now a Really glad to have fixed this behaviour 😁 |
On second thought, the name "openOnClick" might is a little bit confusing. When set to |
But even when |
When clicking a dropdown, there is no response the first time it's clicked. Clicking the dropdown a second time displays the options as expected. In addition, the dropdown closes once an option is clicked.
Again, this only happens in the production build. Everything works as expected in development.In addition, everything was working working fine on RC5, but I just upgraded to RC9 and started experiencing these issues in production build.Note, I'm using react-select in the create-react-app boilerplate.
The text was updated successfully, but these errors were encountered: