-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
scope: selectChanges related to the select.Changes related to the select.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
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" />}
/>
)
}- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
scope: selectChanges related to the select.Changes related to the select.type: bugIt doesn't behave as expected.It doesn't behave as expected.