mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Bug 1661226 - Push button are not rendered with renderInteractiveForms enabled
This commit is contained in:
parent
4ffdbe6ec9
commit
ba94f04ba3
2 changed files with 19 additions and 0 deletions
|
@ -1387,6 +1387,15 @@ class ButtonWidgetAnnotation extends WidgetAnnotation {
|
|||
}
|
||||
|
||||
getOperatorList(evaluator, task, renderForms, annotationStorage) {
|
||||
if (this.data.pushButton) {
|
||||
return super.getOperatorList(
|
||||
evaluator,
|
||||
task,
|
||||
false, // we use normalAppearance to render the button
|
||||
annotationStorage
|
||||
);
|
||||
}
|
||||
|
||||
if (annotationStorage) {
|
||||
const value = annotationStorage[this.data.id] || false;
|
||||
let appearance;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue