react-textarea-autosize icon indicating copy to clipboard operation
react-textarea-autosize copied to clipboard

Text Area grows to a height of max rows when it is re-rendered even though with a single line of text.

Open jawadakram20 opened this issue 1 year ago • 5 comments

Screenshot 2024-06-27 at 4 41 06 PM

Initialliy it show one row but When I switch in between components. The text area grows to max rows.

jawadakram20 avatar Jun 27 '24 11:06 jawadakram20

@Andarist

jawadakram20 avatar Jun 27 '24 11:06 jawadakram20

More context: This happens when the textarea leaves and comes back into the viewport, like switching tabs etc.

In that case, it happens to add a height to the textarea style like this:

codeXLinkX avatar Jun 27 '24 14:06 codeXLinkX

This library is in maintenance mode. PRs are welcome

Andarist avatar Jun 27 '24 15:06 Andarist

I've got the same issue. @jawadakram20 end up finding a workaround for this by chance?

BrennonG avatar Jul 29 '24 20:07 BrennonG

Anyone found another library without this issue?

maybebansky avatar Sep 19 '24 21:09 maybebansky