From ef56084b68275b1f90f93b017c9faf2c8638007b Mon Sep 17 00:00:00 2001 From: Aleksandr Lushkin Date: Thu, 27 Jul 2023 12:56:17 +0200 Subject: [PATCH] Web: Components: Fix getting wrong scroll element in InfiniteLoader --- packages/components/infinite-loader/InfiniteLoader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/infinite-loader/InfiniteLoader.js b/packages/components/infinite-loader/InfiniteLoader.js index 4443761d04..0276a0247f 100644 --- a/packages/components/infinite-loader/InfiniteLoader.js +++ b/packages/components/infinite-loader/InfiniteLoader.js @@ -13,8 +13,8 @@ const InfiniteLoaderComponent = (props) => { useEffect(() => (isLoading ? showLoader() : hideLoader()), [isLoading]); const scroll = isMobileOnly - ? document.querySelector("#customScrollBar > .scroll-body") - : document.querySelector("#sectionScroll > .scroll-body"); + ? document.querySelector("#customScrollBar") + : document.querySelector("#sectionScroll"); return isLoading ? (