From 715e26a9eb219808d5c899d418e1d596f9318f61 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 22 Jun 2026 16:59:19 +0000
Subject: [PATCH] =Debugging and implementing the Checkout.js logic. Will be uploading to test integration with square next.

---
 assets/js/concise/Popup.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/assets/js/concise/Popup.js b/assets/js/concise/Popup.js
index b22d317..3194d63 100644
--- a/assets/js/concise/Popup.js
+++ b/assets/js/concise/Popup.js
@@ -62,7 +62,7 @@
 	handleClick(e) {
 		// Check if click is on any registered toggle
 		for (const [id, entry] of this.popups) {
-			if (e.target === entry.toggle || e.target.closest(id)) {
+			if (e.target === entry.toggle || window.targetCheck(e, id) || window.targetCheck(e, entry.toggle.tagName + '.' + [...entry.toggle.classList].join('.'))) {
 				this.togglePopup(id);
 				return;
 			}

--
Gitblit v1.10.0