- Fixed tabbing into overflowing elements, and reduced the chances of the focus getting "stuck" on unrecognized / unfocusable elements.
- Improved the performance of tabbable checking by using
checkVisibility()
- Allow focus trapping on native controls for things like
<video>
as well as ceding control to<iframe>
s.
- Fixed a bug where tabbing into elements wouldnt scroll it into view.
- Fixed a bug where
event.preventDefault()
was being called when the current trap wasn't active.
- Fixed a bug where activeElement could change without the focus-trapping utility knowing about it.
- Fixed exportmaps in package.json