MUI 6 TextField sx does not exit in slotProps.input #45041
Labels
component: text field
This is the name of the generic UI component, not the React module!
status: waiting for author
Issue with insufficient information
Steps to reproduce
Steps:
yarn && yarn tsc -b
with this commit: andreievg/mui-6-typescript@c280b19 (no typescript errors)yarn && yarn tsc -b
with this commit: andreievg/mui-6-typescript@1372caf (see typescript error)Current behavior
After upgrading to MUI 6 from MUI 5 typescript is confused about
sx
missing on slotProps.input, previously it was in InputProps, and typescript didn't complaintbefore, in MUI 5 (https://github.com/andreievg/mui-6-typescript/blob/c280b19a3ceac5451b4d93a496b6e219f9c9e1d7/src/App.tsx#L4-L12)
after, in MUI 6 (https://github.com/andreievg/mui-6-typescript/blob/1372caf7ac510e95046289c1df75a9fe62ed1b5c/src/App.tsx#L4-L14)
getting this error
Expected behavior
upgrade form MUI 5 to MUI 6 doesn't break type safety (when upgrading deprecated api)
Context
upgrade form MUI 5 to MUI 6
Your environment
npx @mui/envinfo
Search keywords: sx slotProps.input MUI6
The text was updated successfully, but these errors were encountered: