Skip to content

Commit 801be2f

Browse files
authored
Fixed issue monkeytypegame#3971 - active theme selection is properly removed (monkeytypegame#3972)
* fixed issue monkeytypegame#3971 * removed debug statement
1 parent d9120b4 commit 801be2f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

frontend/src/ts/settings/theme-picker.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ export function updateActiveButton(): void {
2121
}
2222

2323
document
24-
.querySelector(`.pageSettings .section.themes .theme`)
25-
?.classList.remove("active");
24+
.querySelectorAll(".pageSettings .section.themes .theme")
25+
.forEach((el) => {
26+
el.classList.remove("active");
27+
});
2628
document
2729
.querySelector(
2830
`.pageSettings .section.themes .theme[theme='${activeThemeName}']`

0 commit comments

Comments
 (0)