Releases: focus-trap/focus-trap-react
Releases · focus-trap/focus-trap-react
v8.9.2
Patch Changes
- 83e283c: Update focus-trap to v6.7.3 for bug fix related to elements with a negative
tabindex
.
v8.9.1
Patch Changes
- 3eb9421: Bump focus-trap to v6.7.2 for bug fix.
v8.9.0
Minor Changes
- 83097a5: Delay trap creation until it should be active. This is a change in behavior, however it should not break existing behavior. The delay now allows you to set
active=false
until you have the focusTrapOptions
set correctly. #539
Patch Changes
- 16d1ae1: Fix bug where global document was being accessed instead of first checking for
focusTrapOptions.document
option. #539
v8.8.2
Patch Changes
- 08a9449: Use
preventScroll
option on deactivation if returning focus.
v8.8.1
Patch Changes
- a2806a0: Fix SSR issues when accessing
document
object (#482)
v8.8.0
Minor Changes
- c8e46c2: Support new
document
option introduced in focus-trap v6.7.0 (#460)
- 5ee587c: Bump focus-trap dependency to v6.7.1
v8.7.1
Patch Changes
- 111a27f: Update focus-trap to v6.6.1, to get tabbable at v5.2.1, to get bug fix for disabled fieldsets.
v8.7.0
Minor Changes
- 7fbe8ca: Update to support new features in
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.
v8.6.0
Minor Changes
- 5292ae8:
- Adding support for new focus-trap options from focus-trap v6.5.0:
checkCanFocusTrap()
, onPostActivate()
, checkCanReturnFocus()
, and onPostDeactivate()
.
- 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 the setReturnFocus
option. The option is now respected the same as it is when using focus-trap directly.
Patch Changes
- 24704c7: Bump focus-trap dependency to 6.5.1 for bug fix to onPostDeactivate.
v8.5.1
Patch Changes
- b8d7071: Bump focus-trap dependency to 6.5.0 to get new features