update build.js

This commit is contained in:
Chris Wanstrath 2025-10-06 20:55:26 -07:00
parent a4e5557bf1
commit 0c892e55b3

View File

@ -1,5 +1,5 @@
//// ////
// version: f4b8a27 // version: a4e5557
// src/js/dom.ts // src/js/dom.ts
var content2 = $("content"); var content2 = $("content");
@ -244,7 +244,7 @@ function handleBrowserKeydown(e) {
} }
} }
function handleClick(e) { function handleClick(e) {
const target = e.target; const target = e.target.closest("button, a");
if (!(target instanceof HTMLElement)) if (!(target instanceof HTMLElement))
return; return;
if (target.id.endsWith("-button")) if (target.id.endsWith("-button"))