Skip to content

Commit

Permalink
ofmcc-5642 scroll to top of page when navigating (#446)
Browse files Browse the repository at this point in the history
* scroll to top of page when navigating
  • Loading branch information
jenbeckett authored Feb 11, 2025
1 parent 66316cf commit c3f3cd2
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 @@ -181,6 +181,7 @@ export default {
async next() {
if (this.isLastSection(this.currentSection)) return
await this.save()
window.scrollTo({ top: 0, behavior: 'smooth' })
this.currentSection = this.sections[this.currentSectionIndex + 1]
},

Expand Down

0 comments on commit c3f3cd2

Please sign in to comment.