[InputUnstyled] ownerState
is a required field for componentsProps
and is appended to a DOM element
#32632
Closed
2 tasks done
Labels
Duplicates
Latest version
Current behavior 😯
Currently,
ownerState
field is required as per type definition ofcomponentsProps
And the
![image](https://user-images.githubusercontent.com/39187887/166891003-245fb62f-347e-48bf-84fe-38e4119501a1.png)
![image](https://user-images.githubusercontent.com/39187887/166891125-9ab5fda8-2b23-4b8c-b97c-774c2f63bbcd.png)
ownerState
prop itself is being appended toinput
DOM element:Expected behavior 🤔
ownerState
is not a required field as per this guide and is not appended to en input DOM elementSteps to reproduce 🕹
Steps:
InputUnstyled
componentcomponentsProps
property of componentownerState
is requiredownerState
ownerState
is being appended to DOM elementContext 🔦
The issue makes development more complicated, as the need to understand some undescribed props appears and to understand it you need to dive deep into type definitions of components. In addition, unnecessary data is being appended to a DOM elements
Your environment 🌎
`npx @mui/envinfo`
tsconfig:
The text was updated successfully, but these errors were encountered: