Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Conditional radio buttons stay hidden #18913

Closed
theodoor opened this issue Oct 17, 2024 · 2 comments · Fixed by #18916
Closed

[Bug]: Conditional radio buttons stay hidden #18913

theodoor opened this issue Oct 17, 2024 · 2 comments · Fixed by #18916
Labels

Comments

@theodoor
Copy link

Attach (recommended) or Link to PDF file

https://justis.nl/sites/default/files/2022-12/Aanvraagformulier%20Verklaring%20Omtrent%20het%20Gedrag%20%28VOG%29%20niet%20ingezetenen.pdf

Web browser and its version

Firefox 132

Operating system and its version

Windows 11

PDF.js version

4.7.18

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. Open the PDF
  2. Click the first radio button of question 2.4

What is the expected behavior?

The radio buttons of question 2.4a should become visible

image

What went wrong?

Only the first radio button of question 2.4a becomes visible.

image

Link to a viewer

No response

Additional context

https://bugzilla.mozilla.org/show_bug.cgi?id=1922766 was filed for this issue.

@Snuffleupagus
Copy link
Collaborator

Possibly a duplicate of issue #18906.

@calixteman
Copy link
Contributor

The visibility of the radios is changed from JS and we only apply the change on the first radio having the right name:

this.container.style.visibility = hidden ? "hidden" : "visible";

In the radio case we must apply the change to every radio in the group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants