From 4613ff38e2aa678f59b4dfae9ee705cf77c8947a Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Sun, 23 Apr 2023 08:31:42 -0400 Subject: [PATCH] improved click handler --- lib/iso.tsx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/iso.tsx b/lib/iso.tsx index 1bb54ea..df2df88 100644 --- a/lib/iso.tsx +++ b/lib/iso.tsx @@ -78,14 +78,19 @@ export const Router = { document.addEventListener("click", e=> { const t = e.target as HTMLAnchorElement; - if(t.href) + const path = e.composedPath() as HTMLAnchorElement[]; + for(let i=0; i