Fix back button scroll behaviour

This commit is contained in:
Kevin MacMartin 2023-04-05 22:02:43 -04:00
parent 873a45dc32
commit 31fb84f579

View file

@ -60,6 +60,8 @@ const router = new createRouter({
return {
el: `[id='${to.hash.slice(1)}']`
};
} else if (savedPosition) {
return savedPosition;
} else {
return { top: 0 };
}