From a26f289dd5ca492454cfa9ce3bf65c13a30756d2 Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 13 Jul 2023 06:10:42 +0000 Subject: [PATCH] ??? --- packages/frontend/src/components/MkPagination.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/frontend/src/components/MkPagination.vue b/packages/frontend/src/components/MkPagination.vue index 6f209aca2..b72e53106 100644 --- a/packages/frontend/src/components/MkPagination.vue +++ b/packages/frontend/src/components/MkPagination.vue @@ -243,6 +243,7 @@ function adjustScroll(fn: () => void): Promise { scroll(scrollableElement, { top: oldScroll, behavior: 'instant' }); fn(); + return nextTick(() => { const top = oldScroll + ((scrollableElement ? scrollableElement.scrollHeight : getBodyScrollHeight()) - oldHeight); scroll(scrollableElement, { top, behavior: 'instant' });