Skip to content

bug(cdkTextareaAutosize): Resize in firefox seems to mess up scroll position #23233

Closed
@felhag

Description

@felhag

Reproduction

  1. open with firefox: https://stackblitz.com/edit/angular-fymbfd?file=src/app/form-field-overview-example.css
  2. scroll to bottom
  3. 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).

Related

#8992
#16629

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/text-field

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions