Scroll to top when changing source manga content type (#365)
This commit is contained in:
@@ -286,6 +286,10 @@ export default function SourceMangas() {
|
|||||||
);
|
);
|
||||||
}, [t, source]);
|
}, [t, source]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
window.scrollTo(0, 0);
|
||||||
|
}, [contentType]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledGridWrapper hasContent={!!mangas.length}>
|
<StyledGridWrapper hasContent={!!mangas.length}>
|
||||||
<ContentTypeMenu>
|
<ContentTypeMenu>
|
||||||
|
|||||||
Reference in New Issue
Block a user