docs: fix category not opening in api reference from algolia search (#8690)
This commit is contained in:
@@ -47,7 +47,7 @@ export const SidebarItemCategory = ({
|
||||
if (isActive && !open) {
|
||||
setOpen(true)
|
||||
}
|
||||
}, [isChildrenActive])
|
||||
}, [isChildrenActive, item.children])
|
||||
|
||||
useEffect(() => {
|
||||
if (!persistState) {
|
||||
|
||||
@@ -530,7 +530,7 @@ export const SidebarProvider = ({
|
||||
activePath,
|
||||
setActivePath,
|
||||
isLinkActive: isLinkActive,
|
||||
isChildrenActive: isChildrenActive,
|
||||
isChildrenActive,
|
||||
findItemInSection,
|
||||
mobileSidebarOpen,
|
||||
setMobileSidebarOpen,
|
||||
|
||||
Reference in New Issue
Block a user