Prototypes are lost when set as theme defaults #12031
Labels
bug 🐛
Something doesn't work
good first issue
Great for first contributions. Enable to learn the contribution process.
Expected Behavior
Default props in a theme keep their prototype.
Current Behavior
The prototype in theme props is removed due to the use of
deepmerge
.Steps to Reproduce (for bugs)
The following works:
The following does not (but should):
https://codesandbox.io/s/04j9lxymow (based on #12011 (comment))
MuiPopover
prop to<MuiThemeProvider />
<Popover />
Context
https://material-ui.com/customization/themes/#properties
Your Environment
The text was updated successfully, but these errors were encountered: