From 0fa6591b593ecb3c006e1aecfa0439e410f5827d Mon Sep 17 00:00:00 2001 From: dank074 Date: Sun, 21 Nov 2021 22:58:41 -0600 Subject: [PATCH] prevent original click event on links --- src/views/nitropedia/NitropediaView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/nitropedia/NitropediaView.tsx b/src/views/nitropedia/NitropediaView.tsx index 823fe466..578349a5 100644 --- a/src/views/nitropedia/NitropediaView.tsx +++ b/src/views/nitropedia/NitropediaView.tsx @@ -38,8 +38,8 @@ export const NitropediaView: FC<{}> = props => { if(event.target instanceof HTMLAnchorElement) { + event.preventDefault(); const link = event.target.href; - console.log(link); if(link.startsWith(internalLinkPrefix)) {