Skip to content

Commit

Permalink
Frontend: Focus page when refreshing
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinSRG committed Sep 9, 2023
1 parent 91849e9 commit a8d055a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/components/layout/PageContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -307,6 +310,7 @@ export default defineComponent({
triggerRefresh: function () {
AppEvents.Emit("random-page-refresh");
this.focusPage();
},
openConfig: function () {
Expand Down

0 comments on commit a8d055a

Please sign in to comment.