Open
Description
Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-material-breaking-sidenav
Steps to reproduce:
- focus on the textarea
- 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.