Skip to content

Commit

Permalink
Fix focus not returning to search icon
Browse files Browse the repository at this point in the history
- Remove programmatic focusing already handled by focus-trap

Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Jan 26, 2023
1 parent 352bd7e commit f6f4c62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions core/src/views/UnifiedSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -374,7 +373,6 @@ export default {

methods: {
async onOpen() {
this.focusInput()
// Update types list in the background
this.types = await getTypes()
},
Expand Down
Loading

0 comments on commit f6f4c62

Please sign in to comment.