Skip to content

Commit

Permalink
Merge pull request #585 from pqv199x/fix-website-tele
Browse files Browse the repository at this point in the history
disable focus search input
  • Loading branch information
thanhson1085 authored Apr 2, 2019
2 parents b0f43c6 + 2fa94e2 commit 45bb5f2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/components/AutoComplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 45bb5f2

Please sign in to comment.