mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-23 04:17:48 +01:00
Prevent reloading of page on share link click
This commit is contained in:
parent
a1ba1a8082
commit
453724be8b
1 changed files with 1 additions and 0 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue