Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: docs navbar stays open (#9827)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArvindParekh authored Dec 1, 2023
1 parent 0d3567e commit 5a1e4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/navbar/SideNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function SideNav({ navigation }) {
{item.name}
</Link>
) : (
<Disclosure as="div">
<Disclosure defaultOpen={item.children.some(subItem => subItem.href === pathname)}>
{({ open }) => (
<>
<Disclosure.Button
Expand Down

0 comments on commit 5a1e4f2

Please sign in to comment.