If styled Select and pass input as props with className specified, the className is not applied as expected.
const TablePaginationSelect = experimentalStyled(
Select,
{},
{
name: 'MuiTablePagination',
slot: 'Select',
overridesResolver: makeOverridesResolver('select'),
},
)();
// usage
function App() {
return (
<TablePaginationSelect
input={<InputBase className="This is overwritten by emotion" />}
/>
)
}
Current Behavior 😯
className is overwritten by emotion
Expected Behavior 🤔
className should not be overwritten
Steps to Reproduce 🕹
Steps:
- create styled Select
- render the <StyledSelect input={} />
- check in devtool, there is no class "This should appear"
Context 🔦
Your Environment 🌎
`npx @material-ui/envinfo`
Don't forget to mention which browser you used.
Output from `npx @material-ui/envinfo` goes here.
If styled Select and pass
inputas props with className specified, the className is not applied as expected.Current Behavior 😯
className is overwritten by emotion
Expected Behavior 🤔
className should not be overwritten
Steps to Reproduce 🕹
Steps:
Context 🔦
Your Environment 🌎
`npx @material-ui/envinfo`