mirror of
https://github.com/docusealco/docuseal.git
synced 2026-08-07 07:14:43 +00:00
21 lines
466 B
JavaScript
21 lines
466 B
JavaScript
export default class extends HTMLElement {
|
|
connectedCallback () {
|
|
this.button.addEventListener('click', () => {
|
|
this.fromInput.value = this.dataset.fromValue || ''
|
|
this.toInput.value = this.dataset.toValue || ''
|
|
})
|
|
}
|
|
|
|
get button () {
|
|
return this.querySelector('button')
|
|
}
|
|
|
|
get fromInput () {
|
|
return document.getElementById(this.dataset.fromId)
|
|
}
|
|
|
|
get toInput () {
|
|
return document.getElementById(this.dataset.toId)
|
|
}
|
|
}
|