Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoiding tab keyboard trap after selecting item using keyboard #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nicolaasmatthijs
Copy link

In certain cases, it is not possible to tab out of the autoSuggest component. This tab keyboard trap can be achieved by following these steps:

  • Focus onto an autoSuggest component
  • Enter a search query
  • Use the keyboard to navigate to a result and press Enter or Tab
  • The element is added to the autoSuggest component
  • A new input field is created for the next item. It is not possible to tab away from this, even when not entering anything into this field

The attached patch allows the user to tab out of that field. This was an accessibility concern for the project I'm using autoSuggest in.

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.

1 participant