(ev: Event)
| 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; |