Allow scroll-to-top with shallow routing #21606
Open
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


What version of Next.js are you using?
10.0.6-canary.9
What version of Node.js are you using?
14.15.4
What browser are you using?
Firefox 84
What operating system are you using?
Ubuntu 20.04
How are you deploying your application?
Vercel
Describe the Bug
Recently (i think 10.0.6-canary.8) the behavior for shallow routing was changed to not scroll-to-top anymore. While this makes sense as a default behavior, it should still be possible to force scrolling by providing
<Link shallow scroll>orrouter.push(path, undefined, { shallow: true, scroll: true ).Expected Behavior
<Link shallow scroll>androuter.push(path, undefined, { shallow: true, scroll: true )should scroll to top.To Reproduce
The text was updated successfully, but these errors were encountered: