-
-
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
AutoComplete:<li> cannot appear as a descendant of <li> when using ListItem in renderOption #19827
Comments
This comment has been minimized.
This comment has been minimized.
@jeromeSH26 The API was designed to prevent the usage of ListItem in this context. It's too slow. |
The alternative is to set a component="div" on the list item to clear the warning. |
This alternative won't help if we use |
@ImanMahmoudinasab See #19254 for a proper fix, in case you want to work on it. |
@oliviertassinari The changes in the mentioned issue will allow developers to use |
@ImanMahmoudinasab Best to try it out by yourselves, if you are fine with it, you can move forward. |
Worked for me, thanks! |
It works . |
Hi guys,
I have this boring warning when using a ListItem object as renderOption:
Warning: validateDOMNesting(...): <li> cannot appear as a descendant of <li>
.Can't find how to bypass it. Any idea?
The text was updated successfully, but these errors were encountered: