TextField does not pass disabled status to InputLabel & FormHelperText #12487
Labels
bug 🐛
Something doesn't work
component: text field
This is the name of the generic UI component, not the React module!
good first issue
Great for first contributions. Enable to learn the contribution process.
Expected Behavior
Passing the
disabled
prop to a TextField should also apply the disabled style to the label and helper text.Current Behavior
Only the Input component is disabled.
Steps to Reproduce
Link: https://codesandbox.io/s/403p55597
disabled
prop.disabled
prop.Context
It's a minor issue since the
disabled
prop can be manually passed within the TextField usingInputLabelProps
, etc., but I found the current behavior surprising. In the source, I believe thedisabled
prop should be given to FormControl like theerror
andrequired
props, unless there is some need to isolatedisabled
to only the Input.The text was updated successfully, but these errors were encountered: