fix(ui): package search input focus

This commit is contained in:
Guillaume Chau
2018-07-02 09:53:41 +02:00
parent 1143c14a69
commit 229e81e264
2 changed files with 6 additions and 1 deletions

View File

@@ -113,6 +113,12 @@ export default {
}
},
mounted () {
requestAnimationFrame(() => {
this.$refs.searchInput.focus()
})
},
methods: {
close () {
this.$emit('close')

View File

@@ -160,7 +160,6 @@ export default {
mounted () {
requestAnimationFrame(() => {
this.$refs.searchInput.focus()
this.checkTab()
})
},