Sidebar is scrolling to top when navigating to a new page #633
Replies: 1 comment
-
I figured it out. The reason was that I did have the DocsLayout as part of my page.tsx and not as a separate layout.tsx so it would load a fresh instance of it every time I would navigate. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks,
I have the problem with my integration of fumadocs that the sidebar is for some reason always scrolling to the top when I navigate to a new page. This is not the case in the core, but I have no idea what I am doing wrong to cause this.
You can look at the behavior here: https://supastarter-website-git-feat-new-docs-sedecon-solutions.vercel.app/docs/nextjs/api/define-endpoint
Beta Was this translation helpful? Give feedback.
All reactions