Skip to content

Commit

Permalink
render the initial state of checkboxes correctly even if they are rad…
Browse files Browse the repository at this point in the history
…iobuttons in disguise and the first checkbox is not checked
  • Loading branch information
RyanHow committed Sep 26, 2024
1 parent bf6e762 commit 4924400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/display/annotation_layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ class CheckboxWidgetAnnotationElement extends WidgetAnnotationElement {
});

// #1737 modified by ngx-extended-pdf-viewer
window.registerAcroformField(id, element, value ? data.exportValue : false);
window.registerAcroformField(id, element, value ? data.exportValue : undefined, undefined, data.fieldValue);
element.addEventListener("updateFromAngular", newvalue => storage.setValue(id, { value: newvalue.detail }));
// #1887 end of modification by ngx-extended-pdf-viewer
if (updateAngularValueNecessary) {
Expand Down
2 changes: 1 addition & 1 deletion web/ngx-extended-pdf-viewer-version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const ngxExtendedPdfViewerVersion = '18.1.12';
export const ngxExtendedPdfViewerVersion = '18.1.15';

0 comments on commit 4924400

Please sign in to comment.