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

Commit 9aa18d4

Browse files
Merge pull request #597 from topcoder-platform/issue-75
changes for #75
2 parents 45c94a4 + 36f247c commit 9aa18d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

client/src/pages/Search/Groups.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ export default function SearchGroups() {
8888
* @param {Object} group The selected group
8989
*/
9090
const onGroupSelected = async (group) => {
91+
if (window) {
92+
window.scrollTo({
93+
top: 0,
94+
});
95+
}
9196
setSelectedGroup(group);
9297
// Reset pagination
9398
setPage(1);

0 commit comments

Comments
 (0)