mirror of
https://github.com/docusealco/docuseal.git
synced 2026-06-23 04:10:11 +00:00
17 lines
422 B
JavaScript
17 lines
422 B
JavaScript
import { actionable } from '@github/catalyst/lib/actionable'
|
|
import { targets, targetable } from '@github/catalyst/lib/targetable'
|
|
|
|
export default actionable(targetable(class extends HTMLElement {
|
|
static [targets.static] = [
|
|
'items'
|
|
]
|
|
|
|
add (e) {
|
|
const elem = document.createElement('input')
|
|
elem.value = e.detail.uuid
|
|
elem.name = `values[${this.dataset.fieldUuid}][]`
|
|
|
|
this.prepend(elem)
|
|
}
|
|
}))
|