From 6f211e12bba40b721553c043e73c847982d115c1 Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Sat, 20 Dec 2025 15:06:47 +0200 Subject: [PATCH] Use childTarget --- frontend/src/ts/pages/settings.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/ts/pages/settings.ts b/frontend/src/ts/pages/settings.ts index b94818fa2..f74f08753 100644 --- a/frontend/src/ts/pages/settings.ts +++ b/frontend/src/ts/pages/settings.ts @@ -784,7 +784,7 @@ qs(".pageSettings .section[data-config-name='funbox'] .buttons")?.onChild( "click", "button", (e) => { - const target = e.target as HTMLElement; + const target = e.childTarget as HTMLElement; const funbox = target?.getAttribute("data-config-value") as FunboxName; Funbox.toggleFunbox(funbox); setActiveFunboxButton(); @@ -796,7 +796,7 @@ qs(".pageSettings .section.tags")?.onChild( "click", ".tagsList .tag .tagButton", (e) => { - const target = e.target as HTMLElement; + const target = e.childTarget as HTMLElement; const tagid = target.parentElement?.getAttribute("data-id") as string; TagController.toggle(tagid); target.classList.toggle("active"); @@ -807,7 +807,7 @@ qs(".pageSettings .section.presets")?.onChild( "click", ".presetsList .preset .presetButton", async (e) => { - const target = e.target as HTMLElement; + const target = e.childTarget as HTMLElement; const presetid = target.parentElement?.getAttribute("data-id") as string; await PresetController.apply(presetid); void update();