Skip to content

Commit

Permalink
Map 696 clear children (#683)
Browse files Browse the repository at this point in the history
* MAP-696 reformat parent id to ensure children are deselected
  • Loading branch information
danbenton-mojdt authored Feb 1, 2024
1 parent 1147bd5 commit 026a327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/views/formPages/incidentMacros.njk
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@
<div class="govuk-checkboxes__item">
<input
class="govuk-checkboxes__input"
id="{{question.primaryQuestion.name}}-parent-{{option.value}}"
id="parent-{{option.value}}-{{question.primaryQuestion.name}}"
name="{{question.primaryQuestion.name}}"
type="checkbox"
value="{{option.value}}"
Expand All @@ -390,7 +390,7 @@
data-aria-controls="conditional-{{option.value}}"
{% if option.value in question.primaryQuestion.value %} checked {% endif %}
>
<label class="govuk-label govuk-checkboxes__label" for="{{question.primaryQuestion.name}}-parent-{{option.value}}">
<label class="govuk-label govuk-checkboxes__label" for="parent-{{option.value}}-{{question.primaryQuestion.name}}">
{{option.label}}
</label>
</div>
Expand Down

0 comments on commit 026a327

Please sign in to comment.