* Removes the errores for the field.
()
| 152 | * Removes the errores for the field. |
| 153 | */ |
| 154 | removeError(){ |
| 155 | this.classList.remove(...this.classes.fieldError); |
| 156 | |
| 157 | let errorElements = this.querySelectorAll(this.selectors.errorMessage); |
| 158 | errorElements.forEach( (element) => { |
| 159 | element.remove(); |
| 160 | }); |
| 161 | } |
| 162 | |
| 163 | /** |
| 164 | * Removes the field from the page and fires the 'removed' event. |