MCPcopy Create free account
hub / github.com/docusealco/docuseal / connectedCallback

Method connectedCallback

app/javascript/elements/fetch_form.js:2–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export default class extends HTMLElement {
2 connectedCallback () {
3 this.form.addEventListener('submit', (e) => {
4 e.preventDefault()
5
6 this.submit()
7 })
8
9 if (this.dataset.onload === 'true') {
10 this.form.querySelector('button').click()
11 }
12 }
13
14 submit () {
15 fetch(this.form.action, {

Callers

nothing calls this directly

Calls 1

submitMethod · 0.45

Tested by

no test coverage detected