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

Merge pull request #12836 from calixteman/update_buttons

JS -- update radio/checkbox values even if there are no actions
This commit is contained in:
Brendan Dahl 2021-01-21 14:00:26 -08:00 committed by GitHub
commit 2cba290361
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 65 additions and 35 deletions

View file

@ -2007,7 +2007,7 @@ class ButtonWidgetAnnotation extends WidgetAnnotation {
}
return {
id: this.data.id,
value: this.data.fieldValue || null,
value: this.data.fieldValue || "Off",
defaultValue: this.data.defaultFieldValue,
exportValues,
editable: !this.data.readOnly,