Skip to content

Commit 3f15b98

Browse files
authored
Merge pull request #78 from TechnologyEnhancedLearning/Develop/Fixes/TD-4184-Focus-doesn't-move-to-field-or-error-on-submit
TD-4184:Focus doesn't move to field or error on submit
2 parents 0cf5818 + 9836bb4 commit 3f15b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
2222
let errorElements = [];
2323
let submitAttempted = false;
24-
document.querySelector('form').onsubmit = () => { submitAttempted = true; }
24+
document.querySelector('form').onsubmit = () => { submitAttempted = true; errorElements = []; }
2525
2626
$(function () {
2727
$('form').each(function () {

0 commit comments

Comments
 (0)