-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(cdk/text-field): autosize text areas using the placeholder #22314
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once the CI failures have been resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
After looking into the CI failures, I've discovered that this change conflicts with some logic in MatInput that deletes the placeholder to prevent screen readers from reading it out twice. According to the comment it's only there to support the legacy form-field, so we should probably just remove it. https://github.com/angular/components/blob/master/src/material/input/input.ts#L370-L380 I'm going to mark this PR as blocked pending that work |
I've created a PR to remove the legacy placeholder logic #22319 |
Alternatively, if we don't care about the autosize behavior with placeholder being a little buggy in the legacy appearance, I can just update the test to use a different form-field appearance. (Made a commit with that change, CI should go green 🤞 |
After some discussion I think its best we just implement this fix for the standard, fill, and outline appearances, not the legacy appearance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Roll-forward w/ fix for angular#22197 This reverts commit 4316787.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Roll-forward w/ fix for #22197
This reverts commit 4316787.