docs: fix category not opening in api reference from algolia search (#8690)
This commit is contained in:
1 parent
a7d03ec562
commit
9734ad1e51
3 files changed
+3
-2
No files matched your search
@@ -143,6 +143,7 @@ const TagSection = ({ tag }: TagSectionProps) => {
|
|||||||
}}
|
}}
|
||||||
pathName={pathname}
|
pathName={pathname}
|
||||||
reportLink={formatReportLink(area, tag.name)}
|
reportLink={formatReportLink(area, tag.name)}
|
||||||
|
vertical
|
||||||
/>
|
/>
|
||||||
</SectionContainer>
|
</SectionContainer>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ export const SidebarItemCategory = ({
|
|||||||
if (isActive && !open) {
|
if (isActive && !open) {
|
||||||
setOpen(true)
|
setOpen(true)
|
||||||
}
|
}
|
||||||
}, [isChildrenActive])
|
}, [isChildrenActive, item.children])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!persistState) {
|
if (!persistState) {
|
||||||
|
|||||||
@@ -530,7 +530,7 @@ export const SidebarProvider = ({
|
|||||||
activePath,
|
activePath,
|
||||||
setActivePath,
|
setActivePath,
|
||||||
isLinkActive: isLinkActive,
|
isLinkActive: isLinkActive,
|
||||||
isChildrenActive: isChildrenActive,
|
isChildrenActive,
|
||||||
findItemInSection,
|
findItemInSection,
|
||||||
mobileSidebarOpen,
|
mobileSidebarOpen,
|
||||||
setMobileSidebarOpen,
|
setMobileSidebarOpen,
|
||||||
|
|||||||
Reference in new issue
Block a user