Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll position is lost when navigating the page (Chrome) #5076

Closed
Andrew-web-coder opened this issue Jun 28, 2021 · 2 comments · Fixed by #5081
Closed

Scroll position is lost when navigating the page (Chrome) #5076

Andrew-web-coder opened this issue Jun 28, 2021 · 2 comments · Fixed by #5081
Labels
bug An error in the Docusaurus core causing instability or issues with its execution

Comments

@Andrew-web-coder
Copy link

Andrew-web-coder commented Jun 28, 2021

🐛 Bug Report

Steps to reproduce

  1. Step - Go to https://docusaurus.io/docs/2.0.0-beta.1/docs-introduction and scroll down half a page
  2. Step - Click on the next docs in the sidebar, for example, https://docusaurus.io/docs/2.0.0-beta.1/create-doc and scroll down
  3. Step - Click "Back" button, previous page will load, but it jump to the top.

Expected behavior

Scroll position should stay the same. It works fine on FF.

Actual behavior

Page suddenly jumps to the top. It worked fine before beta release.

@Andrew-web-coder Andrew-web-coder added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Jun 28, 2021
@slorber
Copy link
Collaborator

slorber commented Jun 28, 2021

Thanks for reporting

It worked fine before beta release.

In which release did it work the last time for you?

@Andrew-web-coder
Copy link
Author

I think I noticed this issue after upgrading from the last alpha to the latest.

@Josh-Cena Josh-Cena removed the status: needs triage This issue has not been triaged by maintainers label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants