mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
JS - Avoid the Stay/Leave popup when clicking on a button with a JS action
- it aims to fix #14039.
This commit is contained in:
parent
7082ff9bf8
commit
e87c12bf34
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