focus-trap-react
Advanced tools
Changelog
8.7.0
focus-trap@6.6.0
including initialFocus
which can now be false to prevent initial focus, and escapeDeactivates
which can now alternately be a function that returns a boolean instead of a straight boolean.Changelog
8.6.0
checkCanFocusTrap()
, onPostActivate()
, checkCanReturnFocus()
, and onPostDeactivate()
.setReturnFocus
option that had thus far been ignored, with focus-trap-react always returning focus to the previously-focused element prior to activation regardless of the use of the setReturnFocus
option. The option is now respected the same as it is when using focus-trap directly.Changelog
8.5.1
Changelog
8.5.0
Changelog
8.4.2
Changelog
8.4.1
Changelog
8.3.2
focus-trap
dependency to new patch release v6.2.2 for bug fix to multi-container traps.Changelog
8.3.0
<FocusTrap />
when containerElements
is used. The child was already being ignored anyway (when containerElements
is used; if the prop is not used, then a single child is still required).children
prop to make it optional. Prop-types already had children
as optional, however the use of React.Children.only()
in all cases was still forcing the presence of a single child. That's no longer the case.containerElements
prop in the documentation.