theKashey / focus-lock

Gotcha! A11y util for scoping a focus.
MIT License
172 stars 17 forks source link

Cannot return focus to an non-tabbable element (negative tabIndex) #54

Closed theKashey closed 9 months ago

theKashey commented 9 months ago

In some circumstances, after focus-lock is triggered during a lifetime it cannot restore focus to the element being focused if this element is focusable, but not tabbable.