-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
[material-ui][Select] No visible highlight when focus is on another Element #39497
Comments
Hey @supidupicoder2, thanks for the report! This seems like a bug. I can repro on the docs:
Screen.Recording.2023-10-27.at.16.02.03.mov |
Hi @DiegoAndai, I noticed that when the user focuses on another element before opening the i.e.
Given that there is no default value selected, it is expected for the basic dropdown menu to be preselected or not? |
@JeevaRamanathan, for the Menu component, this is expected: there's no "default" highlight on the first element. For the Select component, it's not expected: the first element should be highlighted if no value is selected. That is what this issue is pointing out. |
@DiegoAndai Should I take this? |
@DarhkVoyd please! go ahead 😊 |
Hi @DiegoAndai. Apologies for the delay, I'm quite occupied with my college project and might not be able to work on this issue promptly. If it's urgent, kindly reassign it to someone else. Thanks for your understanding. |
@DiegoAndai Hey, I'm back on this, will provide an update to you soon. |
This will be fixed when we refactor the Select component to use Base UI's hooks: #40210 |
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example:
https://react-tgv59j-vsvdvu.stackblitz.io
Steps:
ALSO:
If you hit "Enter" in Step 6 without selecting any other element, "Twenty" will be selected. So i assume it is preselected, but not visibly.
Current behavior 😯
After clicking the button, the preselection is not visible anymore.
Expected behavior 🤔
I would either expect "Twenty" already being visibly preselected in Step 6, or the Keyboard Action of Step 7 selecting the first Element.
Context 🔦
I currently have an issuew with keyboard controlls sometimes not working for some dropdowns in my application. When the keyboard controlls do not work, there is also nothing preselected.
I assume this is part of the issue.
Your environment 🌎
See stackblitz live example environment.
Browser was Chrome.
The text was updated successfully, but these errors were encountered: