Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit e042f74

Browse files
committedJul 24, 2020
fixes issue#66
1 parent 6951420 commit e042f74

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎client/src/pages/Search/Global.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ export default function SearchGlobal({ keyword }) {
239239
setUsers(data);
240240
setTotalResults(Number(headers["x-total"]));
241241
setTotalPages(Number(headers["x-total-pages"]));
242+
if (window) {
243+
window.scrollTo({
244+
top: 0,
245+
behavior: "smooth",
246+
});
247+
}
242248
}
243249
})();
244250

0 commit comments

Comments
 (0)
This repository has been archived.