following first example in angular material docs: https://v15.material.angular.io/cdk/text-field/overview where settings are:
cdkAutosizeMinRows="1"
cdkAutosizeMaxRows="5"
I can only provide 3 rows and component stops expanding showing inner scroll after 4 row input. Did I missed something out here?
I would expect component to expand to 5 rows and show inner scroll after input of 6th row. I found that it worked as expected on some old version of angular: https://stackblitz.com/angular/pbadbpbgyog?file=app%2Ftext-field-autosize-textarea-example.css
Looks like a bug in the angular CDK, since both code is identical but the bug is present in higher versions. you can raise a ticket on angular github page, for now, as a workaround, you can set the maxcolumns to be n + 3 (so 5 rows will be 8) which seems to work fine!
Stackblitz Demo