Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll jump to anchor then back to top #137

Open
mrleblanc101 opened this issue Jul 31, 2023 · 1 comment · May be fixed by #138
Open

Scroll jump to anchor then back to top #137

mrleblanc101 opened this issue Jul 31, 2023 · 1 comment · May be fixed by #138

Comments

@mrleblanc101
Copy link

mrleblanc101 commented Jul 31, 2023

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.
2023-07-31 13 36 04

@mrleblanc101
Copy link
Author

mrleblanc101 commented Jul 31, 2023

Changing .focus() to .focus({preventScroll: true}) seems to fix the problem.
I'll open a PR.

@mrleblanc101 mrleblanc101 linked a pull request Jul 31, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant