Releases: focus-trap/focus-trap-react
Releases · focus-trap/focus-trap-react
v8.7.1
v8.7.0
Minor Changes
- 7fbe8ca: Update to support new features in
[email protected]
includinginitialFocus
which can now be false to prevent initial focus, andescapeDeactivates
which can now alternately be a function that returns a boolean instead of a straight boolean.
v8.6.0
Minor Changes
- 5292ae8:
- Adding support for new focus-trap options from focus-trap v6.5.0:
checkCanFocusTrap()
,onPostActivate()
,checkCanReturnFocus()
, andonPostDeactivate()
. - Adding support (bug fix) for existing focus-trap
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 thesetReturnFocus
option. The option is now respected the same as it is when using focus-trap directly.
- Adding support for new focus-trap options from focus-trap v6.5.0:
Patch Changes
- 24704c7: Bump focus-trap dependency to 6.5.1 for bug fix to onPostDeactivate.