Closed
Description
Reproduction
- open with firefox: https://stackblitz.com/edit/angular-fymbfd?file=src/app/form-field-overview-example.css
- scroll to bottom
- type something on the first line of the textarea
Expected Behavior
The scroll position shouldn't change.
Actual Behavior
When the textarea is at the bottom of the page scroll position changes.
Environment
- Angular: 12.1.3
- CDK/Material: 12.1.1
- Browser(s): Firefox
- Operating System: Windows
Seems like it is caused by #16629. When removing the height: 0 the issue is gone (but the autosizing doesn't work anymore of course).