diff --git a/frontend/src/ts/pages/settings.ts b/frontend/src/ts/pages/settings.ts index f74f08753..0b7de110d 100644 --- a/frontend/src/ts/pages/settings.ts +++ b/frontend/src/ts/pages/settings.ts @@ -968,7 +968,7 @@ function handleHighlightSection(highlight: Highlight | undefined): void { } qsa(".pageSettings .section .groupTitle button")?.on("click", (e) => { - const target = e.target as HTMLElement; + const target = e.currentTarget as HTMLElement; const section = target.parentElement?.parentElement; const configName = (section?.dataset?.["configName"] ?? section?.dataset?.["sectionId"]) as Highlight | undefined;