MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / submitForm

Method submitForm

core/src/components/button/button.tsx:300–309  ·  view source on GitHub ↗
(ev: Event)

Source from the content-addressed store, hash-verified

298 }
299
300 private submitForm(ev: Event) {
301 // this button wants to specifically submit a form
302 // climb up the dom to see if we're in a <form>
303 // and if so, then use JS to submit it
304 if (this.formEl && this.formButtonEl) {
305 ev.preventDefault();
306
307 this.formButtonEl.click();
308 }
309 }
310
311 private handleClick = (ev: Event) => {
312 const { el } = this;

Callers 1

ButtonClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected