improve non-live form validation styling behavior

This commit is contained in:
Adam Piontek 2021-03-03 17:09:42 -05:00
parent 0baa836fa0
commit 488a4e5195

View file

@ -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
);