Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upScroll position does not reset when switching between long docs #12497
Comments
|
Automention: Hey @patricklafrance @shilman, you've been tagged! Can you give a hand here? |
|
I can take a look at this one... |


Describe the bug
With multiple pure-documentation MDX docs, the scroll position of the preview window does not reset when switching between docs.
To Reproduce
Steps to reproduce the behavior:
The second doc loads with the scroll position already partially down the page.
Expected behavior
Selecting a doc should always start with the scroll position at the top of the page.
Screenshots

Code snippets
https://github.com/zolk/storybook-mdx-scroll-bug
System:
Reproducible in Storybook 6.0.21.