From 52219d4b275cfbfdccb4d7911b6b4715f72949d5 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Wed, 5 Apr 2023 01:02:57 +0600 Subject: [PATCH] fix: topic overlay hide --- src/components/TopicOverlay/TopicOverlay.astro | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/TopicOverlay/TopicOverlay.astro b/src/components/TopicOverlay/TopicOverlay.astro index 97ac131f8..a00a6e37c 100644 --- a/src/components/TopicOverlay/TopicOverlay.astro +++ b/src/components/TopicOverlay/TopicOverlay.astro @@ -100,5 +100,9 @@ const { contentContributionLink } = Astro.props; } else { loginMarkDone?.classList.remove('hidden'); markDone?.classList.add('!hidden'); + loginMarkDone?.addEventListener('click', () => { + // Close the overlay + document.getElementById('topic-overlay')?.classList.add('hidden'); + }); }