From 13f5bdc8f86f649a4ab24a9070fd4e7a16f3c07e Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 17 Mar 2022 13:57:27 -0400 Subject: [PATCH] prevent default --- src/components/nitropedia/NitropediaView.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/nitropedia/NitropediaView.tsx b/src/components/nitropedia/NitropediaView.tsx index 78d165ae..948c0e25 100644 --- a/src/components/nitropedia/NitropediaView.tsx +++ b/src/components/nitropedia/NitropediaView.tsx @@ -77,6 +77,8 @@ export const NitropediaView: FC<{}> = props => { if(!(event.target instanceof HTMLAnchorElement)) return; + event.preventDefault(); + const link = event.target.href; if(!link || !link.length) return;