Skip to content

Commit

Permalink
fix remove error message on hiding validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingirorhaun committed May 7, 2024
1 parent 6a4999e commit 2ff4178
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ function showValidationError(element, errorMessage) {
// hide validation error
function hideValidationError(element) {
element.setAttribute("data-error-visible", false);
element.setAttribute("data-error", "");
}

// submit the form
Expand Down

0 comments on commit 2ff4178

Please sign in to comment.