Replace scrollTo call with scrollTop setter

This commit is contained in:
Nikola Hristov 2022-02-24 14:23:43 +02:00 committed by GitHub
parent 2446136b47
commit c0679b7ec8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,7 @@ const Discover = ({ urlParams, queryParams }) => {
const metaItemsContainerRef = React.useRef();
React.useEffect(() => {
if (discover.catalog?.content.type === 'Loading') {
metaItemsContainerRef.current.scrollTo(0, 0);
metaItemsContainerRef.current.scrollTop = 0;
}
}, [discover.catalog]);
return (