Skip to content
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 #22197

Merged
merged 1 commit into from Mar 19, 2021
Merged

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

merged 1 commit into from Mar 19, 2021

Conversation

Copy link
Contributor

@jermowery jermowery commented Mar 11, 2021

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

Fixes #22042

@jermowery jermowery requested a review from mmalerba as a code owner Mar 11, 2021
@google-cla google-cla bot added the cla: yes label Mar 11, 2021
src/cdk/text-field/autosize.ts Outdated Show resolved Hide resolved
@jermowery
Copy link
Author

@jermowery jermowery commented Mar 12, 2021

Had to also adjust the input tests

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 a review from as a code owner Mar 12, 2021
@jelbourn jelbourn added target: major area: cdk/text-field labels Mar 12, 2021
Copy link
Member

@jelbourn jelbourn left a comment

LGTM

@jelbourn jelbourn added the merge ready label Mar 12, 2021
@jermowery
Copy link
Author

@jermowery jermowery commented Mar 12, 2021

Sadly this break g3 because the value is changed on the textarea. I think I will have to abandon this completely as I will be unavailable to look at this for a week and we have other high priority things to deal with right now

@andrewseguin andrewseguin merged commit 476a90b into angular:master Mar 19, 2021
16 checks passed
andrewseguin added a commit to andrewseguin/components that referenced this issue Mar 19, 2021
mmalerba added a commit to mmalerba/components that referenced this issue Mar 22, 2021
mmalerba added a commit to mmalerba/components that referenced this issue Mar 31, 2021
annieyw pushed a commit that referenced this issue Apr 2, 2021
* fix(cdk/text-field): autosize text areas using the placeholder

Roll-forward w/ fix for #22197

This reverts commit 4316787.

* fixup! fix(cdk/text-field): autosize text areas using the placeholder

* fixup! fix(cdk/text-field): autosize text areas using the placeholder

* fixup! fix(cdk/text-field): autosize text areas using the placeholder

* fixup! fix(cdk/text-field): autosize text areas using the placeholder
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Apr 19, 2021

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 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: cdk/text-field cla: yes merge ready target: major
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants