From 2fa94e2022f0c6e067c4139fff144a1dc87d6aaf Mon Sep 17 00:00:00 2001 From: Vu Pham Date: Tue, 2 Apr 2019 09:57:20 +0700 Subject: [PATCH] disable focus search input --- app/components/AutoComplete.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/components/AutoComplete.vue b/app/components/AutoComplete.vue index 0e312566..859ec5f8 100644 --- a/app/components/AutoComplete.vue +++ b/app/components/AutoComplete.vue @@ -62,18 +62,18 @@ export default { }, mounted () { document.addEventListener('click', this.handleClickOutside) - document.addEventListener('keyup', this.focusSearchInput) + // document.addEventListener('keyup', this.focusSearchInput) }, destroyed () { document.removeEventListener('click', this.handleClickOutside) - document.removeEventListener('click', this.focusSearchInput) + // document.removeEventListener('click', this.focusSearchInput) }, methods: { - focusSearchInput (evt) { - if (evt.key === 's' || evt.key === '/') { - document.getElementById('search-input').focus() - } - }, + // focusSearchInput (evt) { + // if (evt.key === 's' || evt.key === '/') { + // document.getElementById('search-input').focus() + // } + // }, onChange () { // Let's warn the parent that a change was made this.$emit('input', this.search)