Skip to content

Releases: focus-trap/focus-trap-react

v8.4.2

06 Feb 23:04
1999c2b
Compare
Choose a tag to compare

Patch Changes

  • f9a6d1a: Throw an error if a Fragment is given as the child container (currently, it appears to work, but the trap is actually not activated because focus-trap can't find the DOM element for the Fragment "container"). (Fixes #268)

v8.4.1

19 Jan 18:14
245074a
Compare
Choose a tag to compare

Patch Changes

  • a4c3105: Update PropTypes for clickOutsideDeactivates to match latest focus-trap.

v8.4.0

16 Jan 22:57
a8b7373
Compare
Choose a tag to compare

Minor Changes

  • 8d58bc8: Bump focus-trap to v6.3.0

v8.3.2

02 Dec 18:12
4e596c3
Compare
Choose a tag to compare

Patch Changes

  • 53fa056: Update focus-trap dependency to new patch release v6.2.2 for bug fix to multi-container traps.

v8.3.1

25 Nov 20:28
a34efe4
Compare
Choose a tag to compare

Patch Changes

v8.3.0

18 Nov 19:12
e2eab2f
Compare
Choose a tag to compare

Minor Changes

  • c4e4837: Remove the need for a child, update typings, update docs:
    • Remove the need for a child in <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).
    • Update the typings related to the 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.
    • Add additional notes about the use of the containerElements prop in the documentation.

Patch Changes

  • 0836c6d: Fixing a bug where the focus trap may not have been set before it is unmounted #184

v8.2.0

17 Nov 17:58
e414308
Compare
Choose a tag to compare

Minor Changes

v8.1.1

31 Oct 21:29
04d2d94
Compare
Choose a tag to compare

Patch Changes

  • 925dfd2: Update the react and react-dom peer dependencies from ^16.0.0 to >=16.0.0 since this library works with React 17 as well as React 16.
  • 01653da: Fix focus not always returning to correct node after setting active prop to false. #139
  • 95f8ab6: Update focus-trap dependency from 6.1.2 to 6.1.4. Bug fixes only.

v8.1.0

26 Sep 20:25
6a80deb
Compare
Choose a tag to compare

Minor Changes

  • 5994a8c: Bump focus-trap from 6.0.1 to 6.1.0. This new version of focus-trap provides a new delayInitialFocus flag that can be used to further customize trap behavior.

Patch Changes

  • 0562ef0: Change prepublishOnly script to prepare script so that it also runs if someone installs the package directly from the git repo (e.g. from your work in which you fixed a bug or added a feature you're waiting to get merged to master and published to NPM).