mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
fix search input
This commit is contained in:
1 parent
70c7ef4247
commit
18b89edc19
1 file changed
+3
-5
@@ -15,13 +15,11 @@ export default class extends HTMLElement {
|
||||
})
|
||||
|
||||
this.button.addEventListener('click', (event) => {
|
||||
event.preventDefault()
|
||||
if (!this.input.value && document.activeElement !== this.input) {
|
||||
event.preventDefault()
|
||||
|
||||
if (this.input.value || document.activeElement === this.input) {
|
||||
return
|
||||
this.input.focus()
|
||||
}
|
||||
|
||||
this.input.focus()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user