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 authored and slorber committed Sep 1, 2022
1 parent bb65b5c commit d521c74
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 d521c74

Please sign in to comment.