composedPath instead path to fix issue #24
This commit is contained in:
parent
e334fecd7e
commit
9f0138292e
@ -360,7 +360,7 @@ const mailgoCheckRender = event => {
|
|||||||
// check if the id=mailgo exists in the body
|
// check if the id=mailgo exists in the body
|
||||||
if (!document.contains(getE("mailgo"))) return;
|
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
|
// go in the event.path to find if the user has clicked on a mailgo element
|
||||||
if (isMailgo(element)) {
|
if (isMailgo(element)) {
|
||||||
// stop the normal execution of the element click
|
// stop the normal execution of the element click
|
||||||
|
Loading…
x
Reference in New Issue
Block a user