Skip to content

Conversation

mistrykaran91
Copy link
Contributor

When textarea is resized to small height it overlaps the content, this fix set's the min-height

Fixes #30089

@mistrykaran91 mistrykaran91 requested a review from a team as a code owner April 9, 2025 11:03
@mistrykaran91 mistrykaran91 requested review from andrewseguin and mmalerba and removed request for a team April 9, 2025 11:03
…ea consistency

When textarea is resized to small height it overlaps the content, this fix set's the min-height

Fixes angular#30089
@mistrykaran91 mistrykaran91 force-pushed the fix/set-min-height-for-textarea branch from acf1fa9 to 429fb52 Compare April 9, 2025 11:08
@mistrykaran91 mistrykaran91 changed the title fix(form-field): add min-height to mdc-text-field for textarea consstency fix(material/form-field): add min-height to mdc-text-field for textarea consistency Apr 9, 2025
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

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

This is unfortunately impossible to land. There are many apps that rely on intentionally making the form-field smaller than this. A more feasible fix for the bug might be to allow specifying a min height as an option to the autosize.

@mmalerba mmalerba closed this Apr 15, 2025
@mistrykaran91 mistrykaran91 deleted the fix/set-min-height-for-textarea branch April 15, 2025 15:41
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(MatFormField): textarea can be reduce to a smaller height than it's content

2 participants