Andarist / react-textarea-autosize

<textarea /> component for React which grows with content
http://andarist.github.io/react-textarea-autosize/
MIT License
2.18k stars 244 forks source link

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

Open jawadakram20 opened 6 days ago

jawadakram20 commented 6 days ago
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 commented 6 days ago

@Andarist

codeXLinkX commented 5 days ago

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:

Andarist commented 5 days ago

This library is in maintenance mode. PRs are welcome