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
Configure the scrollBehavior option of the router like this (standard way to make it scroll to the top on route change):
// app/router.options.tsimporttype{RouterOptions}from'@nuxt/schema'exportdefault<RouterOptions>{scrollBehavior(){return{top: 0}}}
``
### DescribethebugWhenyoutriggeraroutechange(bye.g.clickingonalink),thepage_immediately_scrollstothetop,beforethenewpageevenloaded.Thecorrectbehaviorshouldbecompletelyseamless.Youshouldn't see the scroll happening. When the new page renders, it should be at the configured position (usually at the top).
### Additional context
_No response_
### Logs
_No response_
The text was updated successfully, but these errors were encountered:
Environment
Shouldn't matter but:
Darwin
v18.9.1
3.0.0-rc.11
0.5.4
npm@8.19.1
vite
-
-
-
Reproduction
https://github.com/Willibald-Gluck-Gymnasium/wgg-homepage
Configure the scrollBehavior option of the router like this (standard way to make it scroll to the top on route change):
The text was updated successfully, but these errors were encountered: