[material-ui][OutlinedInput] Theme options ownerState
does not contain correct values
#42333
Labels
component: text field
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: (required)
Steps:
1.
2.
3.
Current behavior
I have an TextField with required set to true.
When styling the MuiOutlinedInput I want conditional styling when the element is required but the ownerstate.required is not set to true.
However, when im styling
MuiFormControl .MuiInputBase-root fieldset:first-of-type
the ownerstate does contain the right information.Expected behavior
I expect the MuiOutlinedInput to contain the correct ownerstates since this is the control where i actually set the "required" attribute.
Context
Conditional styling in my theme options
Your environment
npx @mui/envinfo
Search keywords: required ownerstate themeoptions
The text was updated successfully, but these errors were encountered: