Skip to content

Workaround for TextArea autoResize issue #186

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

Conversation

KevinFCormier
Copy link
Collaborator

PatternFly auto-resize code for the TextArea is running while scrollHeight is still 0. This uses a resize observer to ru-run the code again after the initial re-size.

Signed-off-by: Kevin Cormier <kcormier@redhat.com>
@KevinFCormier KevinFCormier requested review from jamestalton, Randy424 and nitin-dhevar and removed request for jamestalton January 28, 2025 15:12
Copy link
Collaborator

@Randy424 Randy424 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Collaborator

@nitin-dhevar nitin-dhevar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2025-01-28 at 11 35 53 AM Text area is not shrinking now.

@KevinFCormier KevinFCormier merged commit a9e6b4d into patternfly-labs:main Jan 28, 2025
1 check passed
@KevinFCormier KevinFCormier deleted the Fix-TextArea-autoResize-issue branch January 28, 2025 16:41
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