Skip to content

Commit

Permalink
scroll to top of page when navigating
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbeckett committed Jan 31, 2025
1 parent 66316cf commit d3d3364
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/views/reports/SurveyView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ export default {
},

async next() {
window.scrollTo({ top: 0, behavior: 'smooth' })
if (this.isLastSection(this.currentSection)) return
await this.save()
this.currentSection = this.sections[this.currentSectionIndex + 1]
Expand Down

0 comments on commit d3d3364

Please sign in to comment.