Multiline TextField Deprecated But Replacement Not Working #27419
Labels
component: text field
This is the name of the generic UI component, not the React module!
docs
Improvements or additions to the documentation
v5.x migration
Current Behavior 😯
So I am using a text field on my site that I am building and I want it to be more than one line by default. I added the
multiline
prop and entered a number of rows via therows
prop, just like the documentation does. This functions and gives the desired visual output, however I get an error in my terminal and console that say that therows
prop is deprecated and I should userowsMin
instead. However, when I switch therows
prop torowsMin
, it doesn't change the number of lines that the text field is. This is super annoying, especially with the the message always being in console.Traceback (from terminal):
Expected Behavior 🤔
The expected behavior is that the props that are listed on the docs should just work, and not throw any errors. This means that the
rows
prop would not throw an error or if it did, the prop provided in the error would actually work.Steps to Reproduce 🕹
Live Example: https://codesandbox.io/s/materialuirowspropdeprecated-y6pub?file=/src/Demo.tsx (this is as close as I could make it using the template provided and without spending a ton of time on it)
Example:
Steps:
TextField
with a specified rows propContext 🔦
I'm just trying to make a simple form. It functions with the
rows
prop so at least it works but its extremely annoying that it is constantly throwing errors over it.Your Environment 🌎
My browser is Firefox but that shouldn't have anything to do with this because the error is also seen in the terminal (like the server output when it starts up).
`npx @material-ui/envinfo`
Actual List of Browsers:
The text was updated successfully, but these errors were encountered: