Prevent reloading of page on share link click
This commit is contained in:
parent
a1ba1a8082
commit
453724be8b
|
@ -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 New Issue