Skip to content

Commit

Permalink
fix: collapse siblings when first category is selected (#7786)
Browse files Browse the repository at this point in the history
fix: not collapsing when first category is selected
  • Loading branch information
whiteand committed Jul 15, 2022
1 parent 7f40350 commit cf134a5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -136,7 +136,7 @@ export default function DocSidebarItemCategory({
useEffect(() => {
if (
collapsible &&
expandedItem &&
expandedItem != null &&
expandedItem !== index &&
autoCollapseCategories
) {
Expand Down

0 comments on commit cf134a5

Please sign in to comment.