improve user password reset

This commit is contained in:
Alex Turchyn authored and Pete Matsyburka committed 2025-09-06 09:21:59 +03:00
1 parent aeea619059
commit f7be74eb73
9 files changed
+110 -12

No files matched your search

@@ -0,0 +1,14 @@
export default class extends HTMLElement {
connectedCallback () {
this.input = document.getElementById(this.dataset.inputId)
this.input.addEventListener('input', () => {
if (this.input.value.trim().length > 0) {
this.classList.remove('hidden')
} else {
this.classList.add('hidden')
this.querySelectorAll('input').forEach(input => { input.value = '' })
}
})
}
}