diff --git a/packages/frontend/src/components/MkPagination.vue b/packages/frontend/src/components/MkPagination.vue index 6f209aca25..b72e531063 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' });