mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-30 18:58:36 +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(() => {
|
useEffect(() => {
|
||||||
if (
|
if (
|
||||||
collapsible &&
|
collapsible &&
|
||||||
expandedItem &&
|
expandedItem != null &&
|
||||||
expandedItem !== index &&
|
expandedItem !== index &&
|
||||||
autoCollapseCategories
|
autoCollapseCategories
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue