Skip to content

Workaround for TextArea autoResize issue#186

Merged
KevinFCormier merged 1 commit intopatternfly-labs:mainfrom
KevinFCormier:Fix-TextArea-autoResize-issue
Jan 28, 2025
Merged

Workaround for TextArea autoResize issue#186
KevinFCormier merged 1 commit intopatternfly-labs:mainfrom
KevinFCormier:Fix-TextArea-autoResize-issue

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 Randy424, jamestalton 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