From 593aac4ebc1319d3a6911387ffef92197275ad13 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Mon, 6 Oct 2025 20:51:02 -0700 Subject: [PATCH] update build.js --- public/bundle.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index 585f685..224ee13 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -1,5 +1,5 @@ //// -// version: 1a11bd0 +// version: f4b8a27 // src/js/dom.ts var content2 = $("content"); @@ -247,6 +247,8 @@ function handleClick(e) { const target = e.target; if (!(target instanceof HTMLElement)) return; + if (target.id.endsWith("-button")) + e.preventDefault(); switch (target.id) { case "back-button": navigateBack(); @@ -269,7 +271,6 @@ function handleClick(e) { default: return; } - e.preventDefault(); } function handlePageLoad() {} function setAddress(url) {