MCPcopy Create free account
hub / github.com/adearriba/ShopifyCheckoutJS / removeError

Method removeError

src/Components/Field.js:154–161  ·  view source on GitHub ↗

* Removes the errores for the field.

()

Source from the content-addressed store, hash-verified

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.

Callers 1

showErrorMethod · 0.95

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected