This commit is contained in:
parent
6fe184ffda
commit
2cd537a547
|
@ -129,10 +129,10 @@ form.addEventListener("submit", function(event) {
|
||||||
});
|
});
|
||||||
|
|
||||||
form.addEventListener("reset", function (event) {
|
form.addEventListener("reset", function (event) {
|
||||||
const confirmed = confirm("Are you sure you want to clear the form?");
|
const confirmed = confirm("Are you sure you want to clear the form?");
|
||||||
if (!confirmed) {
|
if (!confirmed) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
clearErrors();
|
clearErrors();
|
||||||
});
|
});
|
Loading…
Reference in New Issue