mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-24 06:48:02 +08:00
fix(leaderboards): bottom go to page button not working
This commit is contained in:
parent
853605af24
commit
e4baedee09
1 changed files with 6 additions and 4 deletions
|
|
@ -2,8 +2,10 @@ import { showPopup } from "../modals/simple-modals";
|
|||
|
||||
const lb = document.getElementById("pageLeaderboards");
|
||||
|
||||
lb?.querySelector(
|
||||
for (const button of lb?.querySelectorAll(
|
||||
".jumpButtons button[data-action='goToPage']"
|
||||
)?.addEventListener("click", () => {
|
||||
showPopup("lbGoToPage");
|
||||
});
|
||||
) ?? []) {
|
||||
button?.addEventListener("click", () => {
|
||||
showPopup("lbGoToPage");
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue