mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 17:28:31 +02:00
Update get-gov.js
This commit is contained in:
parent
ac81ecd11a
commit
4c5d8b2c55
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,6 @@ function removeFormErrors(input){
|
|||
let errorMessage = document.getElementById(`${input.id}__error-message`);
|
||||
if (errorMessage) {
|
||||
errorMessage.remove();
|
||||
console.log("Error message removed")
|
||||
}else{
|
||||
return
|
||||
}
|
||||
|
@ -274,6 +273,7 @@ function removeFormErrors(input){
|
|||
input.classList.remove('usa-input--error');
|
||||
}
|
||||
|
||||
// Get the form label
|
||||
let label = document.querySelector(`label[for="${input.id}"]`);
|
||||
if (label) {
|
||||
label.classList.remove('usa-label--error');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue