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

+14
View File
@@ -13,6 +13,16 @@ export default class extends HTMLElement {
this.input.classList.remove('w-60')
}
})
this.button.addEventListener('click', (event) => {
event.preventDefault()
if (this.input.value || document.activeElement === this.input) {
return
}
this.input.focus()
})
}
get input () {
@@ -22,4 +32,8 @@ export default class extends HTMLElement {
get title () {
return document.querySelector(this.dataset.title)
}
get button () {
return this.querySelector('button')
}
}