diff options
author | Nick Coutsos <[email protected]> | 2021-10-16 17:27:42 -0400 |
---|---|---|
committer | Nick Coutsos <[email protected]> | 2021-10-16 17:27:42 -0400 |
commit | 1e58b2818a0617d84fd271fd5951c45d1099f7b9 (patch) | |
tree | 40440f20c43e1d0cd1a26b3cadeb8d787d68bd18 /application | |
parent | cbc5b6737ad6c439b228eb4beebe1fbcceb7681e (diff) | |
download | keymap-editor-1e58b2818a0617d84fd271fd5951c45d1099f7b9.tar.gz keymap-editor-1e58b2818a0617d84fd271fd5951c45d1099f7b9.zip |
Close search for external clicks triggering other events
Diffstat (limited to 'application')
-rw-r--r-- | application/components/search.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/components/search.vue b/application/components/search.vue index fa38f25..c0f667a 100644 --- a/application/components/search.vue +++ b/application/components/search.vue @@ -17,10 +17,10 @@ export default { } }, mounted() { - document.body.addEventListener('click', this.handleClickOutside) + document.body.addEventListener('click', this.handleClickOutside, true) }, unmounted() { - document.body.removeEventListener('click', this.handleClickOutside) + document.body.removeEventListener('click', this.handleClickOutside, true) }, computed: { prompt() { |