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