Skip to content

Commit

Permalink
polish: prevent pop navigation on back if navbar sidebar is open (#5485
Browse files Browse the repository at this point in the history
)
  • Loading branch information
slorber committed Sep 3, 2021
1 parent 3d05ec2 commit 28d2d6a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -66,7 +66,7 @@ function useMobileSidebar() {
setShown(false);
// Should we prevent the navigation here?
// See https://github.com/facebook/docusaurus/pull/5462#issuecomment-911699846
// return false; // prevent pop navigation
return false; // prevent pop navigation
}
return undefined;
});
Expand Down

0 comments on commit 28d2d6a

Please sign in to comment.