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:
calixteman 2021-09-18 15:31:49 +02:00 committed by GitHub
commit f30e862a72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -502,6 +502,10 @@ class LinkAnnotationElement extends AnnotationElement {
return false;
};
}
if (!link.onclick) {
link.onclick = () => false;
}
link.className = "internalLink";
}
}