mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-29 03:20:46 +08:00
Use currentTarget
This commit is contained in:
parent
f052d7fb9f
commit
573b262e25
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue