cdkAutosizeMinRows and cdkAutosizeMaxRows settings of CdkTextareaAutosize not working as...

Discussão em 'Angular' iniciado por dzk008, Janeiro 2, 2025.

  1. dzk008

    dzk008 Guest

    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/text-field-autosize-textarea-example.css

    Continue reading...

Compartilhe esta Página