focus-trap
Advanced tools
Changelog
6.4.0
focus-trap
does not currently leverage the new displayCheck
option.Changelog
6.3.0
clickOutsideDeactivates
can now also be a function that returns a boolean
, similar to allowOutsideClick
. The function receives the MouseEvent
that triggered the click. (#289)Changelog
6.2.3
Array.findIndex()
not supported in that browser (#257)Changelog
6.2.2
fallbackFocus
node has been configured in the trap's options). Also, the most-recently-focused node is more reliably tracked now, should focus somehow escape the trap and be brought back in by the trap, resulting in the truly most-recently-focused node to regain focus if that ever happens.Changelog
6.2.1
./dist
.trap.activate()
and trap.deactivate()
would not always return the trap (now they do in all circumstances)../dist
, however, and hence does not impact browser support.Changelog
6.2.0
Changelog
6.1.3
tabbable
to 5.1.2 which has a similar fix.Changelog
6.1.2
Changelog
6.1.1
returnFocusOnDeactivate
is now respected on auto-deactivation with clickOutsideDeactivates=true
.