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:
commit
f30e862a72
1 changed files with 4 additions and 0 deletions
|
@ -502,6 +502,10 @@ class LinkAnnotationElement extends AnnotationElement {
|
|||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
if (!link.onclick) {
|
||||
link.onclick = () => false;
|
||||
}
|
||||
link.className = "internalLink";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue