mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Always close sheet on pathname change
This commit is contained in:
@@ -24,7 +24,6 @@ export function HeaderMobileMenuButton(
|
||||
|
||||
// biome-ignore lint/correctness/useExhaustiveDependencies: Close the navigation when navigating to a page
|
||||
useEffect(() => {
|
||||
if (!open) return;
|
||||
setOpen(false);
|
||||
}, [pathname]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user