Skip to content

Commit 2689c54

Browse files
committed
TD-4184: Develop/Fixes/TD-4184-Focus-doesn't-move-to-field-or-error-on-submit
1 parent 0b746df commit 2689c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LearningHub.Nhs.WebUI/Views/Shared/_ValidationScriptsPartial.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
let submitAttempted = false;
2424
const form = document.querySelector('form');
2525
if (form) {
26-
form.onsubmit = () => { submitAttempted = true; }
26+
form.onsubmit = () => { submitAttempted = true; errorElements = []; }
2727
}
2828
2929
$(function () {

0 commit comments

Comments
 (0)