mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #15153 from calixteman/1778692
[Annotation] A push button can have no action (bug 1778692)
This commit is contained in:
commit
2b6a67c5d0
3 changed files with 14 additions and 2 deletions
|
@ -1440,8 +1440,8 @@ class PushButtonWidgetAnnotationElement extends LinkAnnotationElement {
|
|||
container.title = this.data.alternativeText;
|
||||
}
|
||||
|
||||
if (this.enableScripting && this.hasJSActions) {
|
||||
const linkElement = container.lastChild;
|
||||
const linkElement = container.lastChild;
|
||||
if (this.enableScripting && this.hasJSActions && linkElement) {
|
||||
this._setDefaultPropertiesFromJS(linkElement);
|
||||
|
||||
linkElement.addEventListener("updatefromsandbox", jsEvent => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue