fluid-lab / gamepad-navigator

GSoC 2020 project
Other
6 stars 10 forks source link

Tab traps prevent further navigation. #118

Closed duhrer closed 7 months ago

duhrer commented 7 months ago

In testing for the upcoming release, I noticed that previous/next item navigation was broken for a particular site. It seems like the site (Catawiki) uses a focus trap on its search auto-completion. A normal tab will exit the navigation, our strategy ends up getting caught and wrapped.

Steps to reproduce:

  1. Open Catawiki.
  2. Use the previous/next item navigation and attempt to navigate forwards.
  3. When you reach the search auto-complete, navigation will wrap within the search field and not go any further.
duhrer commented 7 months ago

I was able to skip past the focus trap by adding a check to confirm whether our first attempt to change focus works.

duhrer commented 7 months ago

This work has been merged and will be included in the upcoming 1.0 release.