diff --git a/assets/js/_form-validity.js b/assets/js/_form-validity.js index d897996a..68dcb393 100644 --- a/assets/js/_form-validity.js +++ b/assets/js/_form-validity.js @@ -9,9 +9,8 @@ Array.prototype.slice.call(forms).forEach(function (form) { if (!form.checkValidity()) { event.preventDefault(); event.stopPropagation(); + form.classList.add("was-validated"); } - - form.classList.add("was-validated"); }, false );