diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d554574877c95d94102e269b47b341c914f82c10..81bc036820b18791cc263c9a30c10e63fd1fff12 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -29,6 +29,7 @@ Fixed * Setting of page height in the iframe was not working correctly. * App switched to offline state when the user was logged out/in. * The `Stop Impersonation` button is not shown due to an oversee when changing the type of the whoAmI query to an object of UserType +* Route changes in the Legacy-Component iframe didn't trigger a scroll to the top `3.0b3`_ - 2023-03-19 --------------------- diff --git a/aleksis/core/frontend/components/LegacyBaseTemplate.vue b/aleksis/core/frontend/components/LegacyBaseTemplate.vue index 30ef189b7daa037bc47fe711515e112b8391b377..84f7e2e12be16f868c731b06f11ad0e4d2557ef4 100644 --- a/aleksis/core/frontend/components/LegacyBaseTemplate.vue +++ b/aleksis/core/frontend/components/LegacyBaseTemplate.vue @@ -103,6 +103,10 @@ export default { $route() { // Show loading animation once route changes this.$root.contentLoading = true; + + // Scroll to top only when route changes to not affect form submits etc. + // A small duration to avoid flashing of the UI + this.$vuetify.goTo(0, { duration: 10 }); }, }, name: "LegacyBaseTemplate",