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

Fix default size for textarea inputs #1582

Merged
merged 2 commits into from
Feb 20, 2023
Merged

Fix default size for textarea inputs #1582

merged 2 commits into from
Feb 20, 2023

Conversation

joeyballentine
Copy link
Member

This ended up being a much easier fix than I thought. Turns out, the default value we were using was not the minimum value of the textarea, but a much larger value. I guess the default size when size was undefined would just be the minimum, but then the size would get set by the useEffect, so on refresh it was setting it to that default size we were setting, hence it getting randomly bigger.

So, I reduced the default size down and set a null condition for the default size.

@theflyingzamboni
Copy link
Collaborator

It's working for me.

@joeyballentine joeyballentine merged commit a0fad82 into main Feb 20, 2023
@RunDevelopment RunDevelopment deleted the text-input-fixes branch August 4, 2023 18:16
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

Successfully merging this pull request may close these issues.

3 participants