virtual
virtual copied to clipboard
The page is not started at the top when navigating to a page that uses @tanstack/virtual >= v3.0.0-beta.61
Describe the bug
The page is not started at the top when navigating to a page that uses @tanstack/virtual >= v3.0.0-beta.61.
It looks like this commit is the problem: https://github.com/TanStack/virtual/pull/592
Your minimal, reproducible example
https://codesandbox.io/p/devbox/next-js-react-virtual-wzxqt4?file=%2Fapp%2Fpage.tsx
Steps to reproduce
- Scroll Down
- click to link Dashboard
- BUG: the page is not started from the top
Expected behavior
the page should be started at the top.
https://github.com/TanStack/virtual/assets/300961/28c8ddb0-5f9a-48ec-beca-c9e1a88931d6
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
- Linux, macOS
- Chrome
tanstack-virtual version
= v3.0.0-beta.61
TypeScript version
5.2.2
Additional context
No response
Terms & Code of Conduct
- [X] I agree to follow this project's Code of Conduct
- [X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.