microsoft / tabster

Web Application Keyboard Navigation Tools
https://tabster.io
MIT License
118 stars 36 forks source link

Accessible modalizer skips focus #303

Closed ling1726 closed 1 year ago

ling1726 commented 1 year ago

repro: https://codesandbox.io/s/sleepy-sound-gnx484?file=/example.tsx

The popover in this examlple in in DOM order - i.e. the third button is after the popover in DOM order

  1. tab to the popover trigger
  2. press enter to open the popover
  3. press tab
  4. Notice focus skips the third button tabster repro
ling1726 commented 1 year ago

This is only a problem from 3.X onwards. a bugfix from 4.X fixed something that then made the behaviour in Fluent UI a bug 🤦