Skip to content

Commit

Permalink
Remove the error from whole block when validation passes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lubosky authored and TheDancingClown committed Sep 1, 2023
1 parent 860a660 commit 18eeb66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/frontend/form-validation.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ window.FormValidation =
container.closest("td").find(".govuk-error-message").empty()
else
container.closest(".question-block").find(".govuk-error-message").empty()
container.closest(".question-block").removeClass("govuk-form-group--error")
container.closest(".govuk-form-group--error").removeClass("govuk-form-group--error")

clearAriaDescribedby: (container) ->
Expand Down

0 comments on commit 18eeb66

Please sign in to comment.