polish: prevent pop navigation on back if navbar sidebar is open (#5485)

This commit is contained in:
Sébastien Lorber 2021-09-03 18:31:32 +02:00 committed by GitHub
parent 3d05ec2e4b
commit 28d2d6a8d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
});