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

Open select with enter key #300

Open
darrensw777 opened this issue Oct 19, 2023 · 2 comments
Open

Open select with enter key #300

darrensw777 opened this issue Oct 19, 2023 · 2 comments

Comments

@darrensw777
Copy link

Is there a way to open the dropdown with the enter key?

I've seen this example but would prefer a functional component way as opposed to a class: https://codesandbox.io/s/open-on-top-w1yr0 - also, this works well, but when tabbing to the dropdown again, it opens automatically on focus, which is probably not the desired effect.

@sanusart
Copy link
Owner

sanusart commented Oct 19, 2023 via email

@darrensw777
Copy link
Author

Please take a look at: https://codesandbox.io/s/open-on-top-forked-z98kxm

When I tab to the select I cannot get out, meaning, carry on using tab to the next input. When I tab back to the select it automatically opens.

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

2 participants