improve non-live form validation styling behavior
This commit is contained in:
parent
0baa836fa0
commit
488a4e5195
1 changed files with 1 additions and 2 deletions
|
@ -9,9 +9,8 @@ Array.prototype.slice.call(forms).forEach(function (form) {
|
|||
if (!form.checkValidity()) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
||||
form.classList.add("was-validated");
|
||||
}
|
||||
},
|
||||
false
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue