[ListItemAvatar] Getting a warning about `childrenClassName`
See original GitHub issue- This is not a v0.x issue.
- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior 🤔
Current Behavior 😯
Steps to Reproduce 🕹
Passed an to the ListItemAvatar component
The browser will give us a warning like
Warning: React does not recognize the
childrenClassName
prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase childrenclassname
instead. If you accidentally passed it from a parent component, remove it from the DOM element.
Context 🔦
Your Environment 🌎
Tech | Version |
---|---|
Material-UI | ^3.6.2 |
React | ^16.4.1 |
Browser | Chrome |
TypeScript | ^3.2.2 |
etc. |
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
[ListItemAvatar] Getting a warning about `childrenClassName`
It feels like there is some code in Material that isn't properly changing value types from what Material wants to what React wants......
Read more >ListItemAvatar API - Material UI - MUI
API reference docs for the React ListItemAvatar component. Learn about the props, CSS, and other APIs of this exported module.
Read more >JavaScript @babel/runtime/helpers/objectSpread Examples
"production" ? warning(false, `Material-UI: <ListItemAvatar> is a simple wrapper to apply the dense styles to <Avatar>. You do not need it unless you...
Read more >https://auctions.truckandtrailer.co.za/res/dist/at...
n *\n * Notice that the dialog width grow is limited by the default margin. ... Utils\n * @param {Object} position - CSS...
Read more >Package Diff: @material-ui/core @ 3.5.1 .. 3.9.3
Fix Snackbar getting stuck when receiving new props (#2024) ... "production" ? warning(false, `Material-UI: <ListItemAvatar> is a simple wrapper to apply ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The original issue sounds like you’re using
instead of the documented
For future reference please follow the issue template and include some form of code with which we can understand what you’re doing and ideally reproduce the issue.
@georgeneil Did you find a solution to this problem? I’m getting this error with a Badge Component wrapping a ListItemAvatar component. If you inline style the Badge it will apply the styles to the ListItemAvatar component.