Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

focus-trap-react

Package Overview
Dependencies
Maintainers
4
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

focus-trap-react - npm Package Versions

1
8

8.3.1

Diff

Changelog

Source

8.3.1

Patch Changes

  • 5d70831: Bump focus-trap to 6.2.1 for bug fixes.
stefcameron
published 8.3.0 •

Changelog

Source

8.3.0

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
stefcameron
published 8.2.0 •

Changelog

Source

8.2.0

Minor Changes

  • 76ed007: Add ability to pass containerElements to focus-trap #179. This PR is made possible because of https://github.com/focus-trap/focus-trap/pull/217 and the released version 6.2.0 of focus-trap.
stefcameron
published 8.1.1 •

Changelog

Source

8.1.1

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.
stefcameron
published 8.1.0 •

Changelog

Source

8.1.0

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).
stefcameron
published 8.0.0 •

Changelog

Source

8.0.0

Major Changes

  • 513a2d3: BREAKING: Updated focus-trap dependency to new 6.0.1 release, which contains breaking changes. This update means it's also now using the latest version of tabbable, which also has breaking changes. See respective CHANGELOGs for details.

Patch Changes

  • 35040fa: Remove call for maintainers. @stefcameron and @maraisr hope to take up the charge. Additional help and contributors are most welcome for anyone interested!
  • 513a2d3: Changed code formatting to use dangling commas where ES5 supports them.
stefcameron
published 7.0.1 •

Changelog

Source

7.0.1

  • Fix: PropTypes definition now supports server-side rendering. #83
stefcameron
published 7.0.0 •

Changelog

Source

7.0.0

  • Add: Prop types for <FocusTrap>.
  • Update: focus-trap dependency from 4.0.2 to 5.1.0 for the latest features/fixes it provides. #71
  • BREAKING Update: Only React 16.0+ is supported going forward. #55
  • BREAKING Update: All dependencies updated to their latest versions.
  • Fix: children's type is React.ReactNode, not React.ReactElement. #66
  • Fix: Allow mutable object refs to be used for FocusTrap child. #72
  • Fix: specifiedFocusTrapOptions.includes(optionName) statement in componentDidMount() was causing an exception because includes() is not a function defined on Object.
davidtheclark
published 6.0.0 •

Changelog

Source

6.0.0

  • Update focus-trap to 4.0.2, which includes a queue of traps, so when a trap is paused because another trap activates, it will be unpaused when that other trap deactivates. If Trap A was automatically paused because Trap B activated (existing behavior), when Trap B is deactivated Trap A will be automatically unpaused (new behavior).
davidtheclark
published 5.0.1 •

Changelog

Source

5.0.1

  • Fix TypeScript declarations.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc