Skip to content
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

Closed
manikanta-kotha opened this issue Sep 21, 2016 · 4 comments

Comments

@manikanta-kotha
Copy link

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.

@andreme
Copy link
Contributor

andreme commented Oct 15, 2016

Use openOnFocus={true} and focus the select?

@jayfunk
Copy link

jayfunk commented Nov 2, 2016

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.

@the-spyke
Copy link
Contributor

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.

@vickingbg
Copy link

vickingbg commented Jul 20, 2017

"autofocus"=true and "openOnFocus" = true works for me. Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants