Skip to content

Commit

Permalink
[dev-overlay] fix: dev indicator menu closing after tab access (#76205)
Browse files Browse the repository at this point in the history
  • Loading branch information
devjiwonchoi authored Feb 20, 2025
1 parent 068d052 commit 41b87ab
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ function DevToolsPopover({

// Open with first item focused
if (e.key === 'ArrowDown' || e.key === 'Enter' || e.key === ' ') {
e.preventDefault()
setIsMenuOpen(true)
// Run on next tick because querying DOM after state change
setTimeout(() => {
Expand All @@ -206,6 +207,7 @@ function DevToolsPopover({

// Open with last item focused
if (e.key === 'ArrowUp') {
e.preventDefault()
setIsMenuOpen(true)
// Run on next tick because querying DOM after state change
setTimeout(() => {
Expand Down

0 comments on commit 41b87ab

Please sign in to comment.