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

Method remove

src/Components/Field.js:166–170  ·  view source on GitHub ↗

* Removes the field from the page and fires the 'removed' event.

()

Source from the content-addressed store, hash-verified

164 * Removes the field from the page and fires the 'removed' event.
165 */
166 remove(){
167 let event = new CustomEvent(`checkout:${this.componentType}:removed`, { detail: this });
168 document.dispatchEvent(event);
169 super.remove();
170 }
171
172 get value(){
173 return this.querySelector(this.selectors.input).value;

Callers 5

showMethod · 0.45
removeErrorMethod · 0.45
removeTooltipMethod · 0.45
constructorMethod · 0.45
addFieldMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected