Skip to content

Commit a2a852e

Browse files
committed
Always close sheet on pathname change
1 parent eef6d2f commit a2a852e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/gitbook/src/components/Header/HeaderMobileMenuButton.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export function HeaderMobileMenuButton(
2424

2525
// biome-ignore lint/correctness/useExhaustiveDependencies: Close the navigation when navigating to a page
2626
useEffect(() => {
27-
if (!open) return;
2827
setOpen(false);
2928
}, [pathname]);
3029

0 commit comments

Comments
 (0)