mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-28 21:30:27 +00:00
attempt to fix scroll behavior
This commit is contained in:
parent
59ebf0af73
commit
7c240a563b
5 changed files with 7 additions and 18 deletions
7
frontend/plugins/scroll.client.ts
Normal file
7
frontend/plugins/scroll.client.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
export default defineNuxtPlugin(nuxtApp => {
|
||||
nuxtApp.hook("page:finish", () => {
|
||||
console.log(document.body);
|
||||
document.body.scrollTo({ top: 0 });
|
||||
console.log("page:finish");
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue