question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TextField doesn't like `rowsMin` and wrongly says `rows` is deprecated

See original GitHub issue
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

When trying to use rowsMin for TextField in 4.12.0 release:

React does not recognize the rowsMin prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase rowsmin instead.

When trying to use rows for TextField in 4.12.0. release:

The prop rows of ForwardRef(TextareaAutosize) is deprecated. Use rowsMin instead.

Note that per the v5 documentation, rows is still viable and this deprecation message is incorrect.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
oldmanflemingcommented, Jul 9, 2021

Based on this demo there is a console error saying: Warning: Failed prop type: The prop rows of ForwardRef(TextareaAutosize) is deprecated. Use rowsMin instead. It appears to only show up when a maxRows prop is also present along with the rows prop, which is why it doesn’t show in the above example. rowsMin does not appear to exist on the props type and is not respected even when passed anyways.

0reactions
MariaSolOscommented, Jul 20, 2021

Never mind. I was about to reproduce the bug again today but it’s fixed now. The Typescript build was probably outdated… Thank you @eps1lon! ❤️

Read more comments on GitHub >

github_iconTop Results From Across the Web

[TextField] Improve multiline behavior · Issue #21317 - GitHub
My particular problem was that I wanted an autosizing textarea starting at 4 rows. I thought rows={4} would do that, but the textarea...
Read more >
TextField inside of Row causes layout exception
I no longer get the exception. What am I missing with the Row implementation that is causing it to not be able to...
Read more >
TextField (deprecated) - Xojo documentation
The standard editable text field used by desktop applications. A TextField control can contain one line of text, with one font, font size,...
Read more >
Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages for SQL Server database engine events.
Read more >
Package 'data.table' - R Project
(used when nomatch is not supplied). mult. When i is a list (or data.frame or data.table) and multiple rows in x match to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found