This commit is contained in:
Pete Matsyburka committed 2025-09-24 12:14:18 +03:00
1 parent f4426a8ee0
commit b64a84a362
51 files changed
+725 -147

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
export default class extends HTMLElement {
connectedCallback () {
const input = this.dataset.inputId ? document.getElementById(this.dataset.inputId) : this.querySelector('input')
this.firstElementChild.addEventListener(this.dataset.on || 'click', () => {
if (this.dataset.emptyOnly !== 'true' || !input.value) {
input.value = this.dataset.value
}
})
}
}