Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Scroll to top after route change #18

Open
grtjn opened this issue Jun 19, 2020 · 0 comments
Open

Scroll to top after route change #18

grtjn opened this issue Jun 19, 2020 · 0 comments

Comments

@grtjn
Copy link
Contributor

grtjn commented Jun 19, 2020

Route changes don't always move focus back to top of page. This will make sure it does, add to ui/src/router.js:

$router.afterEach(() => {
window.scrollTo(0, 0);
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant