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]);
|
||||
|
||||
useEffect(() => {
|
||||
window.scrollTo(0, 0);
|
||||
}, [contentType]);
|
||||
|
||||
return (
|
||||
<StyledGridWrapper hasContent={!!mangas.length}>
|
||||
<ContentTypeMenu>
|
||||
|
||||
Reference in New Issue
Block a user