diff --git a/src/govuk/components/radios/template.njk b/src/govuk/components/radios/template.njk index 280ad806a5..c87f306f96 100644 --- a/src/govuk/components/radios/template.njk +++ b/src/govuk/components/radios/template.njk @@ -11,13 +11,6 @@ aria-describedby – for example hints or error messages -#} {% set describedBy = params.fieldset.describedBy if params.fieldset.describedBy else "" %} -{% set isConditional = false %} -{% for item in params.items %} - {% if item.conditional.html %} - {% set isConditional = true %} - {% endif %} -{% endfor %} - {#- Capture the HTML so we can optionally nest it in a fieldset -#} {% set innerHtml %} {% if params.hint %} @@ -45,7 +38,7 @@ {% endif %}
+ data-module="govuk-radios"> {% for item in params.items %} {% if item %} {#- If the user explicitly sets an id, use this instead of the regular idPrefix -#}