Page doesn't scroll to top after navigation
I'm still trying to create a minimum reproduction for this.
Current behaviour:
- By default scroll does not get reset to top after navigation
- Setting
scrollRestoration: truedoesn't works correctly withrouter.history.back()
I'm having a similar issue with this on Safari only, not chrome. Not sure if related.
I'm experiencing the same issue across all browsers with @tanstack/[email protected].
For what it's worth, enabling scrollRestoration: true seems to make navigation scroll to the top of each page, and it works as intended when going back in history.
@tien does this issue still exist? if yes, can you please share a reproducer?
I'm getting the same issue on my personal website. Occurs only on iPhone Github repo: https://github.com/Steffan-Harris/steffan.lol URL: https://www.steffan.lol/
Steps to reproduce: Scroll down the homepage and navigate to "about" from the homepage
@Steffan-Harris could not reproduce this on an iPhone with safari 17.6. which version of safari do you experience this issue with?