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

[Select] Typeahead doesn't work on a closed Select #65

Open
michaldudak opened this issue Jan 15, 2024 · 2 comments · May be fixed by #541
Open

[Select] Typeahead doesn't work on a closed Select #65

michaldudak opened this issue Jan 15, 2024 · 2 comments · May be fixed by #541
Labels
bug 🐛 Something doesn't work component: select This is the name of the generic UI component, not the React module!

Comments

@michaldudak
Copy link
Member

michaldudak commented Jan 15, 2024

When a Select is closed but focused, pressing a character key should open it and move focus to the first option matching the pressed key. Currently, pressing character keys on a closed Select has no effect.

Search keywords:

@michaldudak michaldudak transferred this issue from mui/material-ui Feb 27, 2024
@michaldudak michaldudak changed the title [base-ui][Select] Typeahead doesn't work on a closed Select [Select] Typeahead doesn't work on a closed Select Feb 27, 2024
@michaldudak michaldudak added component: select This is the name of the generic UI component, not the React module! bug 🐛 Something doesn't work labels Feb 27, 2024
@ZeeshanTamboli
Copy link
Member

@michaldudak, this issue (mui/material-ui#42539) seems related. But instead it describes cycling through options in a closed state when a character key is pressed, similar to the behavior in the native Select (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select).

Modified code:

<label for="pet-select">Choose a pet:</label>
<select name="pets" id="pet-select">
  <option value="">--Please choose an option--</option>
  <option value="dog 1">Dog 1</option>
  <option value="dog 2">Dog 2</option>
  <option value="hamster">Hamster</option>
  <option value="parrot">Parrot</option>
  <option value="spider">Spider</option>
  <option value="goldfish">Goldfish</option>
</select>

Can you take a look at mui/material-ui#42539?

@michaldudak
Copy link
Member Author

Thanks for letting me know!
@colmtuite, FYI, we can consider it when designing the overhauled Select.

@atomiks atomiks linked a pull request Sep 11, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: select This is the name of the generic UI component, not the React module!
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

2 participants