Web: Components: Fix getting wrong scroll element in InfiniteLoader
This commit is contained in:
parent
37efdc292a
commit
ef56084b68
@ -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 ? (
|
||||
<Loader
|
||||
|
Loading…
Reference in New Issue
Block a user