Skip to content

Releases: focus-trap/focus-trap-react

v10.1.2

10 May 22:42
1064934
Compare
Choose a tag to compare

Patch Changes

  • ada0709: Bump focus-trap to v7.4.1 and tabbable to v6.1.2 for nwsapi patch (#986).

v10.1.1

08 Mar 23:50
68e3d59
Compare
Choose a tag to compare

Patch Changes

  • 65c508c: Bump focus-trap to v7.4.0 for new onPost/Pause and onPost/Unpause hooks via existing focusTrapOptions prop. (#948)

v10.1.0

15 Feb 22:22
6aec963
Compare
Choose a tag to compare

Minor Changes

  • 6c8f714: Bump focus-trap to v7.3.1 and tabbable to v6.1.1 for bug fixes and inert support.

v10.0.2

02 Dec 15:03
b2bb532
Compare
Choose a tag to compare

Patch Changes

  • 0c98e74: Add missing trapStack option from focus-trap 7.1.0, add new isKeyForward and isKeyBackward options from focus-trap 7.2.0, bump focus-trap to 7.2.0.

v10.0.1

16 Nov 16:06
7a8404d
Compare
Choose a tag to compare

Patch Changes

  • c772db0: Add help for Strict Mode in README #796
  • d0de500: Bump focus-trap to 7.1.0 and tabbable to 6.0.1 for new trap features and bug fixes

v10.0.0

24 Aug 18:54
81de828
Compare
Choose a tag to compare

Major Changes

  • af69c14: 🚨 Breaking: Underlying tabbable dependency has been updated to v6.0.0 and contains a breaking change related to detached nodes with its default displayCheck setting. See tabbable's changelog for more information.
    • The focus-trap dependency has also be updated to v7.0.0 but only contains the underlying tabbable changes.
    • The tabbableOptions.displayCheck prop type has been updated to include the new "legacy-full" option.
  • 018732c: 🚨 Breaking: Dropped support of IE browsers, all versions.
    • IE11 was officially retired on June 15, 2022 (6 weeks ago). There are no longer any versions of IE that are still maintained or even supported by Microsoft.
  • 018732c: Revised and clarified official browser support (still as broad and deep as reasonably possible).

Patch Changes

  • b0bbbd4: Update README with a note about the children prop stating that the trap requires a single child, and that if a component is used, it must be a functional component that forwards refs.

v9.0.2

18 Jun 20:22
9d6fed3
Compare
Choose a tag to compare

Patch Changes

  • 4d8e041: Fix an issue when running in strict mode which has React immediately unmount/remount the trap, causing it to deactivate and then have to reactivate (per existing component state) on the remount. #720

v9.0.1

13 Jun 21:16
52f57ff
Compare
Choose a tag to compare

Patch Changes

  • 2d6cd9b: Add explicit dependency on tabbable since the source directly requires it.

v9.0.0

10 Jun 00:20
7615185
Compare
Choose a tag to compare

Major Changes

  • 4a77d87: Stop using the infamous findDOMNode() on provided containerElements.
    • There seems to have been no good reason for this as this prop, if specified, is already required to be an array of HTMLElement references, which means these nodes have already been rendered (if they were once React elements). There appears to have been no remaining need for this API.
    • Furthermore, the minimum supported version of React is now 16.3 as it technically has been for a while now since that is the version that introduced callback refs, which we've been using for quite some time now (so this bump will hopefully not cause any ripples).

v8.11.3

09 Jun 23:59
7fd489c
Compare
Choose a tag to compare

Patch Changes

  • 9947461: Bump focus-trap dependency to v6.9.4 to get typings fix.
  • 519e5a5: Fix setReturnFocus option as function not being passed node focused prior to activation.