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 using <ScrollRestoration />, the page should scroll to the top after navigation.
In the StackBlitz environment, scroll to the bottom of the index page and click the link once. Clicking it a second time correctly scrolls to the top.
Actual Behavior
Using Firefox, the page doesn't scroll to the top after navigation if it exceeds a certain height. The threshold for this is seemingly arbitrary, during my testing it was 4840px. This behavior doesn't occur in Chromium, or when using Firefox Mobile.
The text was updated successfully, but these errors were encountered:
I'm using React Router as a...
framework
Reproduction
https://stackblitz.com/edit/github-rneqjkn3?file=app%2Froutes%2Fhome.tsx
System Info
Used Package Manager
npm
Expected Behavior
When using
<ScrollRestoration />
, the page should scroll to the top after navigation.In the StackBlitz environment, scroll to the bottom of the index page and click the link once. Clicking it a second time correctly scrolls to the top.
Actual Behavior
Using Firefox, the page doesn't scroll to the top after navigation if it exceeds a certain height. The threshold for this is seemingly arbitrary, during my testing it was
4840px
. This behavior doesn't occur in Chromium, or when using Firefox Mobile.The text was updated successfully, but these errors were encountered: