mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
polish: prevent pop navigation on back if navbar sidebar is open (#5485)
This commit is contained in:
parent
3d05ec2e4b
commit
28d2d6a8d0
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ function useMobileSidebar() {
|
||||||
setShown(false);
|
setShown(false);
|
||||||
// Should we prevent the navigation here?
|
// Should we prevent the navigation here?
|
||||||
// See https://github.com/facebook/docusaurus/pull/5462#issuecomment-911699846
|
// See https://github.com/facebook/docusaurus/pull/5462#issuecomment-911699846
|
||||||
// return false; // prevent pop navigation
|
return false; // prevent pop navigation
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue