This commit is contained in:
Chris Wanstrath 2025-10-06 20:55:25 -07:00
parent 593aac4ebc
commit a4e5557bf1

View File

@ -111,7 +111,7 @@ function handleBrowserKeydown(e: KeyboardEvent) {
}
function handleClick(e: MouseEvent) {
const target = e.target
const target = (e.target as HTMLElement).closest("button, a")
if (!(target instanceof HTMLElement)) return
if (target.id.endsWith("-button"))