Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jun 27, 2024 · 5 comments

Comments

@jawadakram20
Copy link

jawadakram20 commented Jun 27, 2024

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 jawadakram20 changed the title Text Area take grows to a height of max rows when I re-render it even though with a single line of text. Text Area grows to a height of max rows when it is re-rendered even though with a single line of text. Jun 27, 2024
@jawadakram20
Copy link
Author

@Andarist

@codeXLinkX
Copy link

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:

<textarea style="height: 96px !important;"></textarea>

@Andarist
Copy link
Owner

This library is in maintenance mode. PRs are welcome

@BrennonG
Copy link

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

@maybebansky
Copy link

Anyone found another library without this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants