-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Open
Labels
scope: inputChanges related to the input.Changes related to the input.status: waiting for maintainerThese issues haven't been looked at yet by a maintainer.These issues haven't been looked at yet by a maintainer.
Description
Steps to reproduce
Open this link to live example: https://codesandbox.io/p/github/honzanemecek/mui-outlined-input-bug/main
Steps:
- Extend
OutlinedInputPropsvia theme - Apply the prop on
OutlinedInputelement - Look into the console - warning of incorrect DOM props appears
Current behavior
This is the error that appears:

Expected behavior
Prevent invalid props to be passed to html element as html attributes.
Context
No response
Your environment
npx @mui/envinfo
System:
OS: macOS 26.0.1
Binaries:
Node: 22.20.0 - /Users/honzanemecek/.nvm/versions/node/v22.20.0/bin/node
npm: 10.9.3 - /Users/honzanemecek/.nvm/versions/node/v22.20.0/bin/npm
pnpm: 10.22.0 - /Users/honzanemecek/.nvm/versions/node/v22.20.0/bin/pnpm
Browsers:
I'm using Brave.
Brave: 1.83.120
Chrome: Not Found
Edge: Not Found
Firefox: Not Found
Safari: 26.0.1
Search keywords: input mui material-ui outlinedInput spread props
filip-dot-cube
Metadata
Metadata
Assignees
Labels
scope: inputChanges related to the input.Changes related to the input.status: waiting for maintainerThese issues haven't been looked at yet by a maintainer.These issues haven't been looked at yet by a maintainer.