From 9f0138292e3c6ebd8abe95c8244ab8acf0db26b1 Mon Sep 17 00:00:00 2001 From: Matteo Manzinello Date: Sun, 26 May 2019 12:53:16 +0200 Subject: [PATCH] composedPath instead path to fix issue #24 --- src/mailgo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mailgo.js b/src/mailgo.js index 07f05b2..d628b35 100644 --- a/src/mailgo.js +++ b/src/mailgo.js @@ -360,7 +360,7 @@ const mailgoCheckRender = event => { // check if the id=mailgo exists in the body if (!document.contains(getE("mailgo"))) return; - event.path.forEach(element => { + event.composedPath().forEach(element => { // go in the event.path to find if the user has clicked on a mailgo element if (isMailgo(element)) { // stop the normal execution of the element click