[InputBase] Suggested attributes of inputProps don't show HTML input attributes #27929
Closed
2 tasks done
Labels
component: text field
This is the name of the generic UI component, not the React module!
typescript
Current Behavior 😯
When trying to get suggestions for the
inputProps
prop onInputBase
, it is not showing HTML Input Attributes, such as maxLength.However, these props are actually passed to the input element.
Expected Behavior 🤔
It should show the available attributes for
input
HTML elements, not only global attributes.Steps to Reproduce 🕹
Steps:
inputProps
to get suggestionsContext 🔦
I was trying to pass
maxLength
attribute toinputProps
in<InputBase />
and couldn't get it suggested.Your Environment 🌎
`npx @material-ui/envinfo`
The text was updated successfully, but these errors were encountered: