1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Don't try to save something for a button which is neither a checkbox nor a radio

This commit is contained in:
Calixte Denizet 2020-09-08 19:07:10 +02:00
parent ed47f77527
commit 7e5026dfc5
2 changed files with 25 additions and 1 deletions

View file

@ -1505,7 +1505,8 @@ class ButtonWidgetAnnotation extends WidgetAnnotation {
return this._saveRadioButton(evaluator, task, annotationStorage);
}
return super.save(evaluator, task, annotationStorage);
// Nothing to save
return null;
}
async _saveCheckbox(evaluator, task, annotationStorage) {