hmmmmmm
This commit is contained in:
parent
593aac4ebc
commit
a4e5557bf1
|
|
@ -111,7 +111,7 @@ function handleBrowserKeydown(e: KeyboardEvent) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleClick(e: MouseEvent) {
|
function handleClick(e: MouseEvent) {
|
||||||
const target = e.target
|
const target = (e.target as HTMLElement).closest("button, a")
|
||||||
if (!(target instanceof HTMLElement)) return
|
if (!(target instanceof HTMLElement)) return
|
||||||
|
|
||||||
if (target.id.endsWith("-button"))
|
if (target.id.endsWith("-button"))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user