components icon indicating copy to clipboard operation
components copied to clipboard

cdkTextareaAutosize should remove cdk-textarea-autosize on disabled

Open aitboudad opened this issue 5 years ago • 2 comments
trafficstars

Reproduction

https://stackblitz.com/edit/angular-5x8mff

Steps to reproduce:

  1. set cdkTextareaAutosize to false

Expected Behavior

When passing a false value to cdkTextareaAutosize I would expect to be rendered as a simple textarea.

  • rows should be unset
  • cdk-textarea-autosize should be removed

Actual Behavior

  • rows set 1
  • cdk-textarea-autosize is set.

Environment

  • Angular: 8.2.14
  • CDK/Material: 8.2.3
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS

aitboudad avatar Jan 22 '20 16:01 aitboudad

I see this is a bit old but I am having same issue in latest angular (13)

tkutcher avatar Apr 19 '22 20:04 tkutcher

Same issue with latest Angular 14

davebaol avatar Oct 15 '22 18:10 davebaol