This commit is contained in:
Derek L. Seitz 2025-08-20 22:07:19 -05:00
parent 6fe184ffda
commit 2cd537a547
1 changed files with 4 additions and 4 deletions

View File

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