Skip to content

Commit

Permalink
fix: scroll to top after navigating to next/prev page (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
katharinawuensche committed Sep 18, 2024
1 parent 68cefe2 commit 7712a7b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/search-page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ const initFacetSelection = () => {
.flat()),
);
};
watch(
() => route.query,
() => {
document.body.scrollTo(0, 0);
},
);
</script>

<template>
Expand Down

0 comments on commit 7712a7b

Please sign in to comment.