[material-ui][TextField] Props passed in inputProps
are not attached when slotProps.htmlInput
is passed
#44320
Labels
component: text field
This is the name of the generic UI component, not the React module!
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
Link to live example: (required) https://stackblitz.com/edit/react-osybga?file=Demo.tsx
Steps:
inputProps
and id is passed throughslotProps.htmlInput
inputProps
didn't get attached and onlyid
got attachedinputProps
is deprecated not removed, as a user i would expect old behavior would work as is, irrespective of whetherslotProps
is passed or not.FYI: This PR actually solved this issue, we can consider merging it if we think this issue is a bug.
How to test changes changes are working in #43606
Current behavior
props passed in
inputProps
not getting attached ifslotProps.htmlInput
is passedExpected behavior
props passed in
inputProps
should get attchedContext
No response
Your environment
npx @mui/envinfo
Search keywords: TextField
The text was updated successfully, but these errors were encountered: