mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-02-08 16:08:27 -06:00
fix(ui): package search input focus
This commit is contained in:
@@ -113,6 +113,12 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
mounted () {
|
||||
requestAnimationFrame(() => {
|
||||
this.$refs.searchInput.focus()
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
close () {
|
||||
this.$emit('close')
|
||||
|
||||
@@ -160,7 +160,6 @@ export default {
|
||||
|
||||
mounted () {
|
||||
requestAnimationFrame(() => {
|
||||
this.$refs.searchInput.focus()
|
||||
this.checkTab()
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user