-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Autocomplete] MuiAutocomplete listbox is no longer a <ul> element #44264
Comments
@DiegoAndai Now that
do you think, just changing type to
|
It seems to limit the possibilities to 3 types of parents. Another source seems to be less strict:
However, I checked the HTML below with the W3C validator: https://validator.w3.org/nu/#textarea <div><li>foo</li></div> It does not seem allowed to have a |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @Nyazuki How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Link to live example: (required)
https://codesandbox.io/embed/g6yktw?module=/src/Demo.tsx&fontsize=12
This is the
Combo Box
example on the doc for Autocomplete https://mui.com/material-ui/react-autocomplete/#combo-boxSteps:
div
element.Current behavior
The default listbox is a
div
element in V6.1.5e.g.
Expected behavior
The default listbox is a
ul
element in V5e.g.
Context
At first, I noticed there are some styling(spacing) issues after upgraded from V5 to V6 for my Autocomplete component.
After inspection, I noticed that there is a style previously applied in V5 which is -
ul ul { list-style-type: circle; margin-block-start: 0px; margin-block-end: 0px; }
However, whether or not this style still exist in V6 it will not be applied to the nested
ul
(MuiAutocomplete-groupUl), because now the listbox is adiv
element instead oful
element. I will need to override the margin(to 0px) manually to make it looks the same as in V5.I am not sure if this is bug or an undocumented change from V5 -> V6, or maybe it has documented some where else than the migration doc for V6 which I did not see.
Your environment
npx @mui/envinfo
Search keywords: autocomplete grouped listbox ul div
The text was updated successfully, but these errors were encountered: