mirror of
https://github.com/docusealco/docuseal.git
synced 2026-08-07 07:14:43 +00:00
16 lines
366 B
JavaScript
16 lines
366 B
JavaScript
export default class extends HTMLElement {
|
|
connectedCallback () {
|
|
this.items.forEach((item) => {
|
|
item.addEventListener('change', (e) => {
|
|
this.items.forEach((item) => {
|
|
item.checked = item === e.target && e.target.checked
|
|
})
|
|
})
|
|
})
|
|
}
|
|
|
|
get items () {
|
|
return this.querySelectorAll('input[type="checkbox"]')
|
|
}
|
|
}
|