Open mrleblanc101 opened 1 year ago
When you have an anchor in the URL that is not visible on load, the page will jump to then anchor and the back to the top of the page.
Changing .focus() to .focus({preventScroll: true}) seems to fix the problem. I'll open a PR.
.focus()
.focus({preventScroll: true})
When you have an anchor in the URL that is not visible on load, the page will jump to then anchor and the back to the top of the page.