e-gov / cvi

Common Visual Identity components built upon the original Veera Design System for Open Source usage.
https://e-gov.github.io/cvi/
MIT License
8 stars 23 forks source link

Textarea size is small when using on changeDetection onPush #226

Open kasutajaVJ opened 6 months ago

kasutajaVJ commented 6 months ago

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

certainlyakey commented 6 months ago

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

kasutajaVJ commented 5 months ago

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