Skip to content

fix(cdk/text-field): autosize text areas using the placeholder #22308

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

Closed
wants to merge 1 commit into from
Closed

fix(cdk/text-field): autosize text areas using the placeholder #22308

wants to merge 1 commit into from

Conversation

jermowery
Copy link
Contributor

Fixes a bug with CdkTextareaAutosize where the textarea would not be autosized when using long placeholders

Fixes #22042

Fixes a bug with CdkTextareaAutosize where the textarea would not be autosized when using long placeholders

Fixes #22042

Cache the height with the placeholder

do calculation better

fix comment

Stop caching the placeholder because I can't make the caching approach work with view-engine

go back to the caching approach

Account for the input tests

fix lint error
@jermowery jermowery requested review from mmalerba and a team as code owners March 22, 2021 15:49
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 22, 2021
@jermowery
Copy link
Contributor Author

This is a repeat of #22197 which was accidentally merged.

This PR has failures in g3 and should not be merged yet

@mmalerba
Copy link
Contributor

I created #22314 which has the original changes + a fix

@mmalerba mmalerba closed this Mar 23, 2021
@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 Apr 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(cdkTextareaAutosize): cdkTextareaAutosize does not resize when the placeholder or label is long
2 participants