-
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
How to prevent the menu from opening on click? #1131
Comments
@rooskienz - Calling focus() has the pleasant side effect of closing the menu. Calling that onClick may do the trick.
|
This is throwing an error for me. Calling focus on undefined. |
@morgs32 sounds like you don't have a ref to the react-select component. |
@morgs32 |
@elghali Yea I don't know why @gojohnnygo thinks that'll work. Looking at the code, it seems that when Select is focused, it is sure to have an open menu. |
I wrapped the
|
There is special option |
Hello - In an effort to sustain the We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our efforts towards the current major version. If you aren't using the latest version of However, if you feel this issue is still relevant and you'd like us to review it - please leave a comment and we'll do our best to get back to you! |
Hi,
When I click on the input the menu opens but I only want it to open when user starts typing and there are matching options. How do I do that?
Cheers!
The text was updated successfully, but these errors were encountered: