a
This commit is contained in:
@@ -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();
|
||||
});
|
Reference in New Issue
Block a user