[material-ui][Select] Not working with the styled input prop: Prop className
did not match
#40987
Labels
component: FormControl
The React component
component: select
This is the name of the generic UI component, not the React module!
package: material-ui
Specific to @mui/material
Steps to reproduce
Link to live example
Current behavior
When using a styled component for the input prop of the component Select:
className
did not match. Server: "MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary css-f85pof-MuiInputBase-root-MuiOutlinedInput-root" Client: "MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl css-f85pof-MuiInputBase-root-MuiOutlinedInput-root"Expected behavior
The Select styles are the one in the styled component, if you uncomment the styles from the globals.css they get applied.
Context
I'm trying to change the styles of the input component of the Select
Your environment
npx @mui/envinfo
Search keywords: Select styled input
The text was updated successfully, but these errors were encountered: