1
0
Fork 0
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:
Calixte Denizet 2020-08-26 20:26:18 +02:00
parent 4ffdbe6ec9
commit ba94f04ba3
2 changed files with 19 additions and 0 deletions

View file

@ -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;