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 authored and backportbot-nextcloud[bot] committed Jan 26, 2023
1 parent b848f70 commit ebf5422
Showing 1 changed file with 0 additions and 2 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

0 comments on commit ebf5422

Please sign in to comment.