Skip to content

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

Merged
Haroldwonder merged 1 commit into
Haroldwonder:mainfrom
jessicanath:fix/683-focus-trap-dropdown
Jun 1, 2026
Merged

fix(#683): trap keyboard focus within AnchorSelector dropdown#743
Haroldwonder merged 1 commit into
Haroldwonder:mainfrom
jessicanath:fix/683-focus-trap-dropdown

Conversation

@jessicanath
Copy link
Copy Markdown
Contributor

Summary

Closes #683

Changes

  • Tab key now cycles focus forward through dropdown options (e.preventDefault())
  • Shift+Tab cycles focus backward
  • Focus no longer escapes the open dropdown; Escape still closes it and returns focus to the trigger

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
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@jessicanath is attempting to deploy a commit to the Harold's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@jessicanath Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Haroldwonder Haroldwonder merged commit 542d0fe into Haroldwonder:main Jun 1, 2026
3 of 16 checks passed
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

2 participants