Skip to content

Commit

Permalink
fix:scroll error on page change
Browse files Browse the repository at this point in the history
  • Loading branch information
ayanchoudhary committed Jan 12, 2020
1 parent ed66813 commit f876dbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/views/About.vue
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ export default {
}
},
mounted() {
window.scrollTo(0, 0);
axios
.get(`${CONFIG.baseURL}/api/timeline/?format=json`)
.then(response => {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/views/Event.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
</div>
<div class="mt-28">
<Button
v-if="events.event[0].types !== 'past event'"
v-bind:native="true"
:url="events.event[0].url"
text="Register Now"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export default {
},
mounted() {
this.calculateSectionOffsets();
window.scrollTo(0, 0);
axios
.get(`${CONFIG.baseURL}/api/projects/?format=json`)
.then(response => {
Expand Down

0 comments on commit f876dbf

Please sign in to comment.