From 2d94cc10e41f23858b7f388df1501aec3ecc2e33 Mon Sep 17 00:00:00 2001 From: KoalaDev <6156589+Shik3i@users.noreply.github.com> Date: Fri, 3 Jul 2026 12:43:59 +0200 Subject: [PATCH] website: Fix popup not collapsing after demo walkthrough completes Remove firstTake && !demoFinishedByStory guard from takeOver handler so clicks outside the extension mockup always collapse the popup, regardless of whether the automated walkthrough finished. --- website/app.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/website/app.js b/website/app.js index 37324a2..c7140fa 100644 --- a/website/app.js +++ b/website/app.js @@ -784,9 +784,8 @@ document.addEventListener('DOMContentLoaded', () => { const firstTake = !userTookOver; userTookOver = true; finishDemo(); - // if the story left the popup open and the user clicked elsewhere, - // tuck it away; clicks inside the popup (or on its icon) keep it - if (firstTake && !demoFinishedByStory && e && e.target && + // Clicks outside the popup (and not on its launcher icon) always collapse the popup + if (e && e.target && !e.target.closest('.extension-mockup') && !e.target.closest('.demo-ext-launcher')) { setPopupOpen(false);