From c3f3cd26248b498a6b051e34db72e07f7019a9ec Mon Sep 17 00:00:00 2001 From: Jen Beckett <115109120+jenbeckett@users.noreply.github.com> Date: Tue, 11 Feb 2025 11:17:15 -0800 Subject: [PATCH] ofmcc-5642 scroll to top of page when navigating (#446) * scroll to top of page when navigating --- frontend/src/views/reports/SurveyView.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/views/reports/SurveyView.vue b/frontend/src/views/reports/SurveyView.vue index 7da7d7a9..bfc511c3 100644 --- a/frontend/src/views/reports/SurveyView.vue +++ b/frontend/src/views/reports/SurveyView.vue @@ -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] },