From 780f00c596aafe605678e08c68d29172c78df35f Mon Sep 17 00:00:00 2001 From: freeplay Date: Mon, 17 Jul 2023 18:58:02 -0400 Subject: [PATCH] fix: isTop check causing timeline to load & refresh prematurely --- packages/client/src/components/MkPagination.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/client/src/components/MkPagination.vue b/packages/client/src/components/MkPagination.vue index dbde4149d5..0e8f6201a9 100644 --- a/packages/client/src/components/MkPagination.vue +++ b/packages/client/src/components/MkPagination.vue @@ -385,9 +385,7 @@ const prepend = (item: Item): void => { } const isTop = - isBackTop.value || - (document.body.contains(rootEl.value) && - isTopVisible(rootEl.value)); + document.body.contains(rootEl.value) && ( isBackTop.value || isTopVisible(rootEl.value) ); if (isTop) { // Prepend the item