Skip to content

Commit

Permalink
Check all radio buttons in a group when deciding if the appearance ne…
Browse files Browse the repository at this point in the history
…eds to be updated. (#720)
  • Loading branch information
btecu committed Dec 29, 2020
1 parent 654334b commit 63c6211
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/api/form/PDFRadioGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,13 @@ export default class PDFRadioGroup extends PDFField {
const widget = widgets[idx];
const value = this.acroField.getValue();
const normal = widget.getAppearances()?.normal;
return !(normal instanceof PDFDict && normal.has(value));

if (normal instanceof PDFDict && normal.has(value)) {
return false;
}
}

return false;
return true;
}

/**
Expand Down

0 comments on commit 63c6211

Please sign in to comment.