mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-30 08:28:00 +02:00
fix(docs): fix sidebar item visibility bug for category index (#10754)
This commit is contained in:
parent
4966dce36e
commit
91c0b5bf35
6 changed files with 50 additions and 1 deletions
|
@ -168,6 +168,7 @@ export function isVisibleSidebarItem(
|
|||
case 'category':
|
||||
return (
|
||||
isActiveSidebarItem(item, activePath) ||
|
||||
(typeof item.href !== 'undefined' && !item.linkUnlisted) ||
|
||||
item.items.some((subItem) => isVisibleSidebarItem(subItem, activePath))
|
||||
);
|
||||
case 'link':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue