From a8d055a9c5a692328d6c1f16e2c8427fce945a64 Mon Sep 17 00:00:00 2001 From: AgustinSRG Date: Sat, 9 Sep 2023 14:28:22 +0200 Subject: [PATCH] Frontend: Focus page when refreshing --- frontend/src/components/layout/PageContent.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/components/layout/PageContent.vue b/frontend/src/components/layout/PageContent.vue index 8d9d87de..29180b6b 100644 --- a/frontend/src/components/layout/PageContent.vue +++ b/frontend/src/components/layout/PageContent.vue @@ -185,7 +185,10 @@ export default defineComponent({ expandPage: function () { AppStatus.ExpandPage(); + this.focusPage(); + }, + focusPage: function () { nextTick(() => { const page: any = document.querySelector(".page-content"); if (page) { @@ -307,6 +310,7 @@ export default defineComponent({ triggerRefresh: function () { AppEvents.Emit("random-page-refresh"); + this.focusPage(); }, openConfig: function () {