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

Textarea size is small when using on changeDetection onPush #226

Open
kasutajaVJ opened this issue Apr 5, 2024 · 2 comments
Open

Textarea size is small when using on changeDetection onPush #226

kasutajaVJ opened this issue Apr 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@kasutajaVJ
Copy link
Contributor

What happened?

Text area is small (like regular input), if clicked and add text, then area is normal size. Happens only when onPush change detection is used. When change detection is Default, then text area works.

Reproduction steps

Can be tested only in locally. In development, workaround is used -> used Default change detection.
Added video to demo steps.

Screenshot

text_area_on_push.zip

Package

Angular

Version

2.9.0

Reproduction URL

No response

Browser

No response

Browser version

No response

Extra details about your environment

No response

Relevant log output

No response

@kasutajaVJ kasutajaVJ added the bug Something isn't working label Apr 5, 2024
@certainlyakey
Copy link
Contributor

Thank you for filing the issue! Any ideas on how to resolve it?

@kasutajaVJ
Copy link
Contributor Author

kasutajaVJ commented Apr 30, 2024

Not sure, maybe it's linked with cdkTextareaAutosize bug where CDK autoresize disables browser resize feature.
Maybe workaround would be to use autosize input to trigger cdk action. Right now using Default ChangeDetectionStrategy fix it and don't cause any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants