[bug] Incorrect scroll position when elements focus in modal
Created by: tmcnicholls
- Operating system and version: Android 9
- Browser and version: Chrome 77.0.3865.92
- Reduced test case: https://codepen.io/tmcnicholls/pen/oNvVBKX
- Mobile debug: https://s.codepen.io/tmcnicholls/debug/oNvVBKX
Issue
On Android phones with Chrome, we see an issue with modals scrolling to the very bottom when selecting an input. This means the user cannot see the input they have just selected.
Firefox on Android seems to work ok, and iOS behaves differently but will half cover a selected input if it is at the bottom of the viewport before the keyboard appears.
The minimal test case seems to be related to having a long page above the modal trigger button. I have included a screen recording showing the issue.