Sidebar categories don't autocollapse when navigating via paginator #7387
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
domain: theme
Related to the default theme components
Have you read the Contributing Guidelines on issues?
Motivation
When
autoCollapseCategories
is set totrue
, I think it would be consistent to collapse all the non-current sidebar categories leaving only one actively open category. This is what happens when we open a new sidebar category by clicking on the sidebar. However, if we trigger open a new category viaPaginatorNavLink
button, it does not trigger collapse for the previously opened categories.For example, let's open https://docusaurus.io/docs/typescript-support, which is the last page of Getting Started category. Now clicking on the next category i.e., Guides in the sidebar would collapse the Getting Started and open Guides. Now, go back to previous page, scroll down to the bottom of the page, and click the Next button, it will open Guides category in the sidebar but also leave the Getting Started open.
Self-service
The text was updated successfully, but these errors were encountered: