Skip to content

Application shifts when pressing 'Page Down' in a textarea inside mat-sidenav-content when mat-sidenav[position] is set to "end" #17863

Open
@joerideg

Description

@joerideg

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-material-breaking-sidenav

Steps to reproduce:

  1. focus on the textarea
  2. press PgDn button

Expected Behavior

User scrolls a page down inside the text area

Actual Behavior

Application shifts left

Environment

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

When pressing 'Page Down' in a textarea inside mat-sidenav-content when mat-sidenav[position] is set to "end" will shift the application left visually. Using mat-sidenav[position="start"] the behavior is fine. I've also noticed the amount of shift seems to be related to the number of characters on the line the cursor ends up on. Also pressing left afterwards will shift the application back to the right a bit.
Opening and closing the sidenav resets the application position.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/sidenav

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions