mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 15:17:23 +02:00
fix(v2): fix SkipToContent programmatic focus when updating querystring (#5104)
This commit is contained in:
parent
15a2b59f9f
commit
d65cc9d23f
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ function SkipToContent(): JSX.Element {
|
|||
};
|
||||
|
||||
useLocationChange(({location}) => {
|
||||
if (containerRef.current && !location.hash && action !== 'POP') {
|
||||
if (containerRef.current && !location.hash && action === 'PUSH') {
|
||||
programmaticFocus(containerRef.current);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue