focus-trap
Advanced tools
Changelog
3.0.0
clickOutsideDeactivates
and returnFocusOnDeactivate
are both true
, focus will be returned to the pre-trap element only if the clicked element is not focusable.Changelog
2.4.6
Changelog
2.4.4
unpkg.com
.Changelog
2.4.3
activate
function.Changelog
2.3.1
tabindex
and is in the middle of other tabbable elements.Changelog
2.3.0
initialFocus
and fallbackFocus
options can take functions that return DOM nodes.pause
and unpause
cannot accidentally add extra event listeners.