mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-31 02:12:13 +02: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';
|
import noop from 'utilities/noop';
|
||||||
|
|
||||||
export function shareEventHandler(event: Event): void {
|
export function shareEventHandler(event: Event): void {
|
||||||
|
event.preventDefault();
|
||||||
const answerbox = (event.target as HTMLElement).closest('.answerbox');
|
const answerbox = (event.target as HTMLElement).closest('.answerbox');
|
||||||
|
|
||||||
navigator.share({
|
navigator.share({
|
||||||
|
|
Loading…
Reference in a new issue