BackDrop component does not render children #17084
Labels
component: backdrop
This is the name of the generic UI component, not the React module!
good first issue
Great for first contributions. Enable to learn the contribution process.
new feature
New feature or request
Current Behavior 😯
Backdrop does not render children content.
Expected Behavior 🤔
Backdrop should render children.
Steps to Reproduce 🕹
https://codesandbox.io/s/create-react-app-t695r
The issue is with the implementation of Backdrop
https://github.com/mui-org/material-ui/blob/aa4e2dbf3ad98355d2e43cdd281f0ea2c2204046/packages/material-ui/src/Backdrop/Backdrop.js#L32-L47
children gets spread into Fade, but the nested div will just overwrite that.
I recommend doing this instead:
Context 🔦
I'm trying to create a full screen loader with a backdrop and the loading indicator doesn't get rendered because the Backdrop component only renders the div.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: