diff --git a/plugins/magic-keys.client.ts b/plugins/magic-keys.client.ts index 2c885347..41f53243 100644 --- a/plugins/magic-keys.client.ts +++ b/plugins/magic-keys.client.ts @@ -75,5 +75,8 @@ export default defineNuxtPlugin(({ $scrollToTop }) => { ?.querySelector('button#elk_show_new_items') ?.click() } - whenever(logicAnd(isAuthenticated, notUsingInput, keys['.']), showNewItems) + whenever(logicAnd(isAuthenticated, notUsingInput, keys['.']), () => { + showNewItems() + ;($scrollToTop as () => void)() + }) })