mirror of
https://github.com/fly-apps/live_beats.git
synced 2025-01-12 16:15:26 +00:00
Merge pull request #10 from ndarilek/dropdown-a11y
When a dropdown is open, block Tab to avoid navigating away.
This commit is contained in:
commit
982e626424
1 changed files with 2 additions and 0 deletions
|
@ -87,6 +87,8 @@ Hooks.Menu = {
|
|||
let menuItems = this.menuItems()
|
||||
this.deactivate(menuItems)
|
||||
this.activate(menuItems.indexOf(this.activeItem) - 1, menuItems.length - 1)
|
||||
} else if (e.key === "Tab"){
|
||||
e.preventDefault()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue