mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
add date placeholder
This commit is contained in:
1 parent
678997fb36
commit
ad3367dae0
3 files changed
+16
-1
No files matched your search
@@ -0,0 +1,10 @@
|
||||
export default class extends HTMLElement {
|
||||
connectedCallback () {
|
||||
const input = this.querySelector('input')
|
||||
const placeholder = this.querySelector('span')
|
||||
|
||||
input.addEventListener('change', () => {
|
||||
placeholder.classList.toggle('hidden', !!input.value)
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user