1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

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";
}
}