microsoft / tabster

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

fix: hidden fixed elements do not receive focus #367

Closed smhigley closed 4 months ago

smhigley commented 4 months ago

Related to #329

There's a bug where fixed elements that are hidden with display: none, or nested within another element with display: none were still treated as focusable.

This adds an additional check to isDisplayNone to catch fixed & hidden elements, as well as tests.