Skip to content

fix(#683): trap keyboard focus within AnchorSelector dropdown#3

Open
jessicanath wants to merge 1 commit into
mainfrom
fix/683-focus-trap-dropdown
Open

fix(#683): trap keyboard focus within AnchorSelector dropdown#3
jessicanath wants to merge 1 commit into
mainfrom
fix/683-focus-trap-dropdown

Conversation

@jessicanath
Copy link
Copy Markdown
Owner

Summary

Closes Haroldwonder#683

Changes

  • In AnchorSelector.tsx, the Tab key handler now calls e.preventDefault() and cycles focus forward through dropdown options
  • Shift+Tab cycles focus backward
  • Focus no longer escapes the dropdown while it is open; Escape still closes it and returns focus to the trigger button

Intercept Tab/Shift+Tab when the dropdown is open to cycle focus
through options instead of allowing it to escape the dropdown.

Closes Haroldwonder#683
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AnchorSelector.tsx keyboard navigation does not trap focus within dropdown

1 participant