Prevent reloading of page on share link click

This commit is contained in:
Andreas Nedbal 2021-12-26 23:46:42 +01:00
parent a1ba1a8082
commit 453724be8b
1 changed files with 1 additions and 0 deletions

View File

@ -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({