We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
styled
See https://github.com/mui/material-ui/actions/runs/8837080528/job/24265117421?pr=41663 in mui/material-ui#41663
ownerState is undefined in InputBase styles when FilledInput (Pigment) is wrapping Input (MUI System).
ownerState
InputBase
FilledInput
Input
const FilledInputRoot = styled(InputBase)(…)
The root cause is that FilledInputRoot does not forward ownerState to InputBase which causes an error from the InputBase.
They should work together, both MUI System wrappin Pigment or Pigment wrapping MUI System.
Found this issue when trying to migrate only FilledInput to support Pigment CSS.
npx @mui/envinfo
Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here.
Search keywords: styled
The text was updated successfully, but these errors were encountered:
Can't we use the shouldForwardProp for this? Can you create a simplified stackblitz to showcase the issue?
shouldForwardProp
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce
See https://github.com/mui/material-ui/actions/runs/8837080528/job/24265117421?pr=41663 in mui/material-ui#41663
Current behavior
ownerState
is undefined inInputBase
styles whenFilledInput
(Pigment) is wrappingInput
(MUI System).The root cause is that FilledInputRoot does not forward
ownerState
to InputBase which causes an error from the InputBase.Expected behavior
They should work together, both MUI System wrappin Pigment or Pigment wrapping MUI System.
Context
Found this issue when trying to migrate only FilledInput to support Pigment CSS.
Your environment
npx @mui/envinfo
Search keywords: styled
The text was updated successfully, but these errors were encountered: