mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 18:27:56 +02:00
fix: collapse siblings when first category is selected (#7786)
fix: not collapsing when first category is selected
This commit is contained in:
parent
7f40350d6e
commit
cf134a5308
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ export default function DocSidebarItemCategory({
|
|||
useEffect(() => {
|
||||
if (
|
||||
collapsible &&
|
||||
expandedItem &&
|
||||
expandedItem != null &&
|
||||
expandedItem !== index &&
|
||||
autoCollapseCategories
|
||||
) {
|
||||
|
|
Loading…
Add table
Reference in a new issue