-
Notifications
You must be signed in to change notification settings - Fork 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
MDL + React: Warning: validateDOMNesting(...): <li> cannot appear as a descendant of <li>. See Registration > li > ... > li #4896
Comments
We do not provide react components. The demos exist in V2 are just for example purposes and may fall behind at times as they are not a priority to keep updated until we get a milestone release out for testing. I'd assume you are using a a third-party wrapper for MDL to provide React components. If so, please get in touch with the creator of that library. If this is somehow a problem internal to MDL then provide more details on what exactly you are doing with our code (live examples very useful here) and we can assess the problem from there to see if any action should be taken. Thank you. |
Sorry I forgot to mention that I just used .mdl-layout and .mdl-layout__drawer and that builds markup that has nested |
Facing same issue when i try to use< li> in React Tabs
|
@Atmiya735 I think the warning is merely pointing out the HTML nesting is invalid. Permitted content of |
Apparently React doesn't like nested components that don't have keys that make them distinguishable for its Virtual DOM. Could you guys just generate keys automatically for these elements in the next release?
The text was updated successfully, but these errors were encountered: