radiobutton/checkboxed in nested fieldsets inadvertently setting conditional to hidden #609
Labels
checkboxes
🕙 days
A few unknowns, but we roughly know what’s involved
help wanted
Extra attention is needed
radios
Bug Report
What is the issue?
In the example shown in the screenshot below, there are radio buttons shown only when the user chooses the first option("I am employed or self employed").
When I click in any of the radio buttons below the conditional content will then get closed and the option I just clicked on disappears.
So, on click, it's running
addClass(input, 'nhsuk-radios__conditional--hidden')
to allconditionalInputs
in the page.One of two things I think should happen:
addEventListener
is added only to radiobuttons/checkboxes that could affect the aria-expanded;.nhsuk-radios--conditional
ornhsuk-checkboxes--conditional
which is an immediate parent of the current node, and apply thetoggleConditionalInput
only to that;What steps are required to reproduce the issue?
Is there anything else you think would be useful in recreating the issue?
The text was updated successfully, but these errors were encountered: