Closed Ibabalola closed 2 months ago
When rendering the form input I noticed the empty error div was still rendered on page load
<div class="dcx-form-input govuk-form-group"> <label for="userReference">some label</label> <div class="dcx-error-message"></div> <!-- this container div is not required --> <div class="dcx-hint govuk-hint">some hint</div> <input name="userReference" type="text" class="govuk-input" tabindex="0" id="userReference" value=""> </div>
This PR remove this such that the error div containing the error message is rendered only when needed
When rendering the form input I noticed the empty error div was still rendered on page load
This PR remove this such that the error div containing the error message is rendered only when needed