You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When navigating to other pages on the docs site, the site wouldn't scroll to the top on page load. This should be working by default without any weird solution. However, this was addressed by making a scrollToTop component in Docusaurus' <Layout /> component.
The commit where this solution was put into place is here: 8432f9a
Note
If you remove this code, you'll notice it stops scrolling to the top on page load. To take things even further, by running window.scrollTo(0,0) inside dev tools, you'll notice it doesn't scroll to the top even though you are explicitly running a function that would do that on any website.
Not sure what this could mean, but documenting this just in case we come across any weird, related DOM issues.
The text was updated successfully, but these errors were encountered:
Context
When navigating to other pages on the docs site, the site wouldn't scroll to the top on page load. This should be working by default without any weird solution. However, this was addressed by making a scrollToTop component in Docusaurus'
<Layout />
component.The commit where this solution was put into place is here: 8432f9a
Note
If you remove this code, you'll notice it stops scrolling to the top on page load. To take things even further, by running
window.scrollTo(0,0)
inside dev tools, you'll notice it doesn't scroll to the top even though you are explicitly running a function that would do that on any website.Not sure what this could mean, but documenting this just in case we come across any weird, related DOM issues.
The text was updated successfully, but these errors were encountered: