mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
11 lines
284 B
JavaScript
11 lines
284 B
JavaScript
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)
|
|
})
|
|
}
|
|
}
|