This commit is contained in:
2025-08-20 22:07:19 -05:00
parent 6fe184ffda
commit 2cd537a547

View File

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