Fix focus not returning to search icon

- Remove programmatic focusing already handled by focus-trap

Signed-off-by: Christopher Ng <chrng8@gmail.com>
pull/36370/head
Christopher Ng 2023-01-25 17:02:51 +07:00
parent 352bd7ecea
commit f6f4c62936
3 changed files with 3 additions and 5 deletions

@ -354,7 +354,6 @@ export default {
if (event.ctrlKey && event.key === 'f' && !this.open) {
event.preventDefault()
this.open = true
this.focusInput()
}
// https://www.w3.org/WAI/GL/wiki/Using_ARIA_menus
@ -374,7 +373,6 @@ export default {
methods: {
async onOpen() {
this.focusInput()
// Update types list in the background
this.types = await getTypes()
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long