Input styled with inputClasses.multiline does not work #31080
Labels
bug 🐛
Something doesn't work
component: text field
This is the name of the generic UI component, not the React module!
Duplicates
Latest version
Current behavior 😯
When trying to use
inputClasses.multiline
to style an input's root element, it does not appear to be applying those styles at all.The following code does not appear to change the height or border of the input when
multiline=true
:Expected behavior 🤔
inputClasses.multiline
should apply to the component whenmultiline=true
.Steps to reproduce 🕹
https://codesandbox.io/s/upbeat-hertz-0p994?file=/src/App.js:101-364
This demonstrates the issue. If you add the following to the styles it overrides properly:
Context 🔦
I am trying to create a custom styled input, but we have a specific height the base input needs to be. I need to override that height to auto if the input is multiline.
Your environment 🌎
`npx @mui/envinfo`
Browser used: Chrome 98
The text was updated successfully, but these errors were encountered: