Skip to content

Commit 51027d2

Browse files
authored
Merge pull request #773 from TechnologyEnhancedLearning/Develop/Fixes/TD-4184-Focus-doesn't-move-to-field-or-error-on-submit
TD-4184: Develop/Fixes/TD-4184-Focus-doesn't-move-to-field-or-error-o…
2 parents cec4b0c + 2689c54 commit 51027d2

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)