diff options
Diffstat (limited to 'src/pages/_app.js')
| -rw-r--r-- | src/pages/_app.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pages/_app.js b/src/pages/_app.js index a7a8e86e..23172bfd 100644 --- a/src/pages/_app.js +++ b/src/pages/_app.js @@ -19,7 +19,11 @@ function MyApp({ Component, pageProps }) { limit={1} /> <NextProgress color="#D7A30A" options={{ showSpinner: false }} /> - <AnimatePresence mode='wait' initial={false}> + <AnimatePresence + mode='wait' + initial={false} + onExitComplete={() => window.scrollTo(0, 0)} + > <Component {...pageProps} key={router.asPath} /> </AnimatePresence> </> |
