Skip to content

Releases: focus-trap/focus-trap-react

v8.9.2

12 Feb 18:01
ed75765
Compare
Choose a tag to compare

Patch Changes

  • 83e283c: Update focus-trap to v6.7.3 for bug fix related to elements with a negative tabindex.

v8.9.1

12 Jan 20:05
20a13c3
Compare
Choose a tag to compare

Patch Changes

  • 3eb9421: Bump focus-trap to v6.7.2 for bug fix.

v8.9.0

11 Dec 23:20
8aaa5b2
Compare
Choose a tag to compare

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

14 Oct 15:52
2896701
Compare
Choose a tag to compare

Patch Changes

  • 08a9449: Use preventScroll option on deactivation if returning focus.

v8.8.1

27 Sep 22:08
40d4665
Compare
Choose a tag to compare

Patch Changes

  • a2806a0: Fix SSR issues when accessing document object (#482)

v8.8.0

27 Sep 16:47
d5e1c2b
Compare
Choose a tag to compare

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

14 Aug 17:33
221d433
Compare
Choose a tag to compare

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

03 Jul 22:00
251f19f
Compare
Choose a tag to compare

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

19 Jun 16:02
3e46f82
Compare
Choose a tag to compare

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

08 Jun 18:37
9ff5cf5
Compare
Choose a tag to compare

Patch Changes

  • b8d7071: Bump focus-trap dependency to 6.5.0 to get new features