-
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
is there any way to expand the options list by default, without clicking the selection menu ? #1235
Comments
Use openOnFocus={true} and focus the select? |
That doesnt appear to work. I have tried most of the props to try and get the component into a state where the options list is always displayed. |
You need to set "autofocus" and "openOnFocus" to true. Alternatively, you can call "focus" instance method in your own "componentDidMount" function with "openOnFocus" set to true. |
"autofocus"=true and "openOnFocus" = true works for me. Thanks ! |
Thanks for using react-select!
If you are reporting an error please include a test case that demonstrates the issue you're reporting!
This is very helpful to maintainers in order to help us see the issue you're seeing.
Here is a Plunker you can fork that has react-select loaded and supports JSX syntax:
https://plnkr.co/edit/HTmtER9AMNcPoWhXV707?p=preview
You may also find the online Babel tool quite helpful if you wish to use ES6/ES7 syntax not yet supported by the browser you are using.
The text was updated successfully, but these errors were encountered: