Skip to content

Choosing a page scrolls the sidebar to the top

How to reproduce

It's easiest to shorten the height of your browser window and pick a page from the Analyze collection. Once the sidebar reloads it will be back at the top instead of maintaining the scroll position.

Screen recording

Code_Review___Gitlab_Org___Gitlab_Shell___GitLab_-_4_April_2023

Implementation plan

  • When the sidebar gets mounted, call .scrollIntoView() on the active nav item.
Edited by Paul Gascou-Vaillancourt