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 hash history via createHashHistory, navigation to new pages doesn't scroll to the top of the page. Instead it seems to keep the scroll position from the original page.
Which project does this relate to?
Router
Describe the bug
When using hash history via
createHashHistory
, navigation to new pages doesn't scroll to the top of the page. Instead it seems to keep the scroll position from the original page.Your Example Website or App
https://stackblitz.com/edit/github-4rybtq-5mekkq2j?file=src%2Froutes%2Findex.tsx,src%2Froutes%2Fabout.tsx,src%2Fmain.tsx
Steps to Reproduce the Bug or Issue
Expected behavior
As a user, I expect to go to the top of /about when I haven't been there before. Instead I end up scrolled to the middle of the page.
Screenshots or Videos
No response
Platform
Additional context
The incorrect behaviour is only visible when using "hash history". When using default browser history the navigation behaves as expected.
The text was updated successfully, but these errors were encountered: