Current Behavior 😯
When trying to get suggestions for the inputProps prop on InputBase, 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:
- Demo
- Start typing on
inputProps to get suggestions
- Find out only Global Attributes are shown
Context 🔦
I was trying to pass maxLength attribute to inputProps in <InputBase /> and couldn't get it suggested.
Your Environment 🌎
`npx @material-ui/envinfo`
System:
OS: Windows 10 10.0.19042
CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
Memory: 3.96 GB / 15.37 GB
Binaries:
Node: 16.0.0 - C:\Program Files\nodejs\node.EXE
npm: 7.10.0 - C:\Program Files\nodejs\npm.CMD
Managers:
pip3: 20.2.3 - C:\Python39\Scripts\pip3.EXE
Utilities:
Git: 2.30.0.
Virtualization:
Docker: 20.10.5 - C:\Program Files\Docker\Docker\resources\bin\docker.EXE
SDKs:
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
Versions: 10.0.17763.0
IDEs:
VSCode: 1.59.1 - C:\Users\Martín\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
Visual Studio: 16.9.31205.134 (Visual Studio Community 2019)
Languages:
Bash: 5.0.17 - C:\Windows\system32\bash.EXE
Python: 3.9.1
Browsers:
Edge: Spartan (44.19041.1023.0), Chromium (92.0.902.78)
Internet Explorer: 11.0.19041.906
Monorepos:
Lerna: 3.22.1
Current Behavior 😯
When trying to get suggestions for the
inputPropsprop 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
inputHTML elements, not only global attributes.Steps to Reproduce 🕹
Steps:
inputPropsto get suggestionsContext 🔦
I was trying to pass
maxLengthattribute toinputPropsin<InputBase />and couldn't get it suggested.Your Environment 🌎
`npx @material-ui/envinfo`