Skip to content

Commit

Permalink
Merge pull request #140 from avantifellows/scorecard_scroll
Browse files Browse the repository at this point in the history
Small Fix: Resets scroll when scorecard opened
  • Loading branch information
suryabulusu authored Dec 5, 2023
2 parents 7906cc5 + c2ce45e commit 3010a2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Scorecard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ export default defineComponent({
const container = ref();
window.scrollTo(0, 0); // scroll up top incase users scroll down in modal screen
onUnmounted(() => {
window.removeEventListener("resize", checkScreenOrientation);
});
Expand Down

0 comments on commit 3010a2a

Please sign in to comment.