somewhat fix scrolling behaviour (#127)
Reviewed-on: https://akkoma.dev/AkkomaGang/pleroma-fe/pulls/127
This commit is contained in:
parent
cbf883ab1e
commit
4dcca7cf53
3 changed files with 8 additions and 7 deletions
|
@ -377,8 +377,9 @@ const afterStoreSetup = async ({ store, i18n }) => {
|
|||
routes: routes(store),
|
||||
scrollBehavior: (to, _from, savedPosition) => {
|
||||
if (to.matched.some(m => m.meta.dontScroll)) {
|
||||
return false
|
||||
return {}
|
||||
}
|
||||
|
||||
return savedPosition || { left: 0, top: 0 }
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue