From 453724be8ba9f4fbc53e06b72664d3ba134db0aa Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 26 Dec 2021 23:46:42 +0100 Subject: [PATCH] Prevent reloading of page on share link click --- app/javascript/retrospring/features/answerbox/share.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/retrospring/features/answerbox/share.ts b/app/javascript/retrospring/features/answerbox/share.ts index f623ec75..9018550e 100644 --- a/app/javascript/retrospring/features/answerbox/share.ts +++ b/app/javascript/retrospring/features/answerbox/share.ts @@ -1,6 +1,7 @@ import noop from 'utilities/noop'; export function shareEventHandler(event: Event): void { + event.preventDefault(); const answerbox = (event.target as HTMLElement).closest('.answerbox'); navigator.share({