We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 853605a commit e4baedeCopy full SHA for e4baede
frontend/src/ts/event-handlers/leaderboards.ts
@@ -2,8 +2,10 @@ import { showPopup } from "../modals/simple-modals";
2
3
const lb = document.getElementById("pageLeaderboards");
4
5
-lb?.querySelector(
+for (const button of lb?.querySelectorAll(
6
".jumpButtons button[data-action='goToPage']"
7
-)?.addEventListener("click", () => {
8
- showPopup("lbGoToPage");
9
-});
+) ?? []) {
+ button?.addEventListener("click", () => {
+ showPopup("lbGoToPage");
10
+ });
11
+}
0 commit comments