Merge pull request #14040 from calixteman/14039
JS - Avoid the Stay/Leave popup when clicking on a button with a JS action
This commit is contained in:
commit
f30e862a72
@ -502,6 +502,10 @@ class LinkAnnotationElement extends AnnotationElement {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
if (!link.onclick) {
|
||||
link.onclick = () => false;
|
||||
}
|
||||
link.className = "internalLink";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user