Jumpy sidebar while navigating groups #1350
Answered
by
fuma-nama
dtbuchholz
asked this question in
Q&A
-
To Reproduce
Current vs. Expected behaviorMy docs site sidebar—you can see two tab groups for CLI and SDK. If I click on an item in one of these groups, the other collapses. demo.mp4The official Fumadocs, for comparison. If you click on an item within different groups, nothing collapses. demo.mp4Provide environment informationMacOS
Node 23
pnpm 9.15.1
All fumadocs are the latest version (here's a dump from my package file)
"@theguild/remark-mermaid": "^0.2.0",
"fumadocs-core": "15.0.0",
"fumadocs-docgen": "^1.3.5",
"fumadocs-mdx": "11.3.2",
"fumadocs-twoslash": "^3.0.0",
"fumadocs-ui": "15.0.0",
"katex": "^0.16.21",
"next": "15.1.6",
"next-themes": "^0.4.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-icons": "^5.4.0",
"rehype-katex": "^7.0.1",
"remark-math": "^6.0.0",
"rimraf": "^6.0.1",
"shiki": "^2.1.0",
"tailwind-merge": "^2.6.0",
"tailwindcss-animate": "^1.0.7" Which area(s) are affected? (Select all that apply)UI Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Answered by
fuma-nama
Feb 1, 2025
Replies: 1 comment 3 replies
-
I think you're likely adding the |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
dtbuchholz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you're likely adding the
DocsLayout
component in apage.tsx
, orlayout.tsx
under the catch-all route. Next.js unmounts them as the route params change, you need to move them to a upper place likeapp/docs/layout.tsx