resetScroll={false} only works on first click
I am super confused here. The first click on one of these tabs works correctly (page doesnt scroll to the top), but all subsequent clicks scroll to the top.
Am I doing something wrong?
The same was happening when I tested with Link components outside of this Tabs component as well, so I think I've isolated it to not be an issue with this component
5 Replies
vicious-goldOP•7mo ago
In other words, even this doesn't work (only on first click):
some more details ive noticed.
it only ever appears to work "the first time" when its after a fresh browser reload while on that page. if i navigate from another page to this page, it doesnt "work the first time" either
vicious-goldOP•7mo ago
GitHub
resetScroll={false} does not work · Issue #3408 · TanStack/router
Which project does this relate to? Router Describe the bug The linked reproduction example isn't the use case I have (mine is "changing search params on the same page" without resetti...
harsh-harlequin•7mo ago
4. Go back to home page, scroll down again"go back" as in "click the browser's back button" ?
vicious-goldOP•7mo ago
no, sorry. clicking the home page again
i'll clarify in that issue
i think in my testing, the back button actually did work as intended
eastern-cyan•7mo ago
I'm also running into this issue when updated search params on a button click for the same page