Skip to content

Commit 229e81e

Browse files
author
Guillaume Chau
committed
fix(ui): package search input focus
1 parent 1143c14 commit 229e81e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/@vue/cli-ui/src/components/NpmPackageSearch.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ export default {
113113
}
114114
},
115115
116+
mounted () {
117+
requestAnimationFrame(() => {
118+
this.$refs.searchInput.focus()
119+
})
120+
},
121+
116122
methods: {
117123
close () {
118124
this.$emit('close')

packages/@vue/cli-ui/src/views/ProjectPluginsAdd.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ export default {
160160
161161
mounted () {
162162
requestAnimationFrame(() => {
163-
this.$refs.searchInput.focus()
164163
this.checkTab()
165164
})
166165
},

0 commit comments

Comments
 (0)