Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to prevent auto-collapse of expanded menu items #512

Open
AntonShuvaev opened this issue Dec 14, 2024 · 0 comments
Open

Add option to prevent auto-collapse of expanded menu items #512

AntonShuvaev opened this issue Dec 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@AntonShuvaev
Copy link

Feature Description
When expanding a menu item in the sidebar, allow multiple sections to stay expanded instead of auto-collapsing previously expanded items.

Problem/Solution
Current behavior: When clicking to expand a menu item in the sidebar, any previously expanded items automatically collapse, creating a single-expansion behavior. This is not a common pattern in documentation sites - for example, Nextra keep items expanded.
Proposed solution: Add configuration option to control collapse behavior:

params:
 sidebar:
   autoCollapse: false
@imfing imfing added the enhancement New feature or request label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants