From 573b262e2578babcad1b1622e497d7d9288bcc5f Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Sat, 20 Dec 2025 15:29:39 +0200 Subject: [PATCH] Use currentTarget --- frontend/src/ts/pages/settings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;