-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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] Shows the first item to be selected when initial value is blank or null and the menu popover is not aligned properly with the Select #32407
Comments
The darker background indicates a highlighted item - that is, the one that will get selected when you press Enter. |
@michaldudak : Same issue here ! The first item is selected when initial value is blank or null. And this happen without pressing enter as you claim. |
I didn't mean you need to press Enter. I'm saying that the first item is highlighted, which means it'll be selected after a user presses Enter. This is by design. |
Same issue here! This problem can be triggered when running https://mui.com/material-ui/react-app-bar/#app-bar-with-menu on iOS (16.3.1 latest) and Safari (latest). The first menu item would be gray after the menu appeared. |
@michaldudak You are right, but the highlighted first item is not clickable so it can't be chosen by click but only by Enter. |
@michaldudak I have same opinion as @NenadBecanovicPD. This issue is torturing my designer and me.. please let us know as least how to disable that option, either with api option or with css id. |
@NenadBecanovicPD, what do you mean by not clickable? @LeeSolfmk, how would you like to indicate the currently highlighted item, then? You can target the highlighted item using the |
You should be able to disable
https://mui.com/material-ui/api/select/#Select-prop-MenuProps |
Saved my day, Thanks. |
Duplicates
Latest version
Current behavior 😯
Trying to create a simple basic Select with no customization / or styling.
Two issues observerd --
Please help.
Below is the code snipped used --
Expected behavior 🤔
No response
Steps to reproduce 🕹
Steps:
Context 🔦
No response
Your environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: