angular / angular/components

cdkTextareaAutosize should remove cdk-textarea-autosize on disabled

Open
#18,254 2 comments 1 reaction 0 assignees View on GitHub
area: material/input P3
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

#### 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`

Contributor guide

Open the contributing guide

Research direction

Start with the linked StackBlitz reproduction and trace the cdkTextareaAutosize behavior when its input is false. Done means a disabled autosize textarea behaves as a simple textarea: rows is unset and the cdk-textarea-autosize class is removed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.