Skip to content

Commit ed9c51c

Browse files
authored
Reset scroll position when changing the search term (#382)
I hate my life (f5a8c8d)... AINTNOWAY
1 parent 322cf8c commit ed9c51c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/screens/SourceMangas.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ export default function SourceMangas() {
256256
// with strict mode + dev mode the first request will be aborted. due to using SWR there won't be an
257257
// immediate second request since it's the same key. instead the "second" request will be the error handling of SWR
258258
abortRequest(new Error(`SourceMangas(${sourceId}): search string changed`));
259+
setResetScrollPosition(true);
259260
},
260261
[searchTerm, contentType],
261262
);

0 commit comments

Comments
 (0)