Skip to content

[Bug]: Clicking "load more" on the leaderboard snaps the page back to the very top every time #618

Description

@Priyanka0205-CSE

Bug Description

was browsing the leaderboard, scrolled down a bit, hit load more — and the whole page jumped back to the top. had to scroll all the way down again just to see the new entries that loaded. happened every single time i loaded more results.
What's happening

when new leaderboard entries are loaded, the page scrolls back to the top instead of keeping the user's current scroll position. so you load more, get yanked to the top, have to scroll back down to find where you were.
Expected behavior

after loading more entries the scroll position should stay roughly where it was so you can continue from where you left off. pretty standard infinite scroll / load more behavior.
Why it matters

it completely breaks the browsing flow. every "load more" click essentially resets your progress through the list.
Component

leaderboard component — load more / pagination

Metadata

Metadata

Labels

NSoC'26NSoC 2026bugSomething isn't workingenhancementNew feature or requestfrontendFrontend related changes (HTML/CSS/JS/React)gssocGirlScript Summer of Codegssoc26GirlScript Summer of Code 2026needs-reviewIssue needs reviewneeds-triagensocNSoC

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions