From 414ce7afd9ee4742e46a2b19c500bc799031be8b Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 26 Oct 2024 11:01:23 +0100 Subject: [PATCH] Fix propagation issue on sponsor close --- src/components/PageSponsor.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/PageSponsor.tsx b/src/components/PageSponsor.tsx index babf23d79..00cccc243 100644 --- a/src/components/PageSponsor.tsx +++ b/src/components/PageSponsor.tsx @@ -163,6 +163,8 @@ export function PageSponsor(props: PageSponsorProps) { aria-label="Close" onClick={(e) => { e.preventDefault(); + e.stopPropagation(); + markSponsorHidden(sponsorId || ''); sponsorHidden.set(true); }}