Socket
Socket
Sign inDemoInstall

focus-trap-react

Package Overview
Dependencies
11
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous123467Next

8.1.1

Diff

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.
davidtheclark
published 5.0.0 •

Changelog

Source

5.0.0

  • BREAKING: <FocusTrap> now expects exactly one child element which can be any HTML element or other React component that contains focusable elements. The tag prop has been removed, as has support for additional props that are passed through to the tag, because it is no longer necessary: you should provide your own element, with whatever props you want, as a child of <FocusTrap>.
davidtheclark
published 4.0.1 •

Changelog

Source

4.0.1

  • Fix bug that caused returnFocusOnDeactivate: true to be ignored when using the active prop to activate & deactivate the focus trap.
davidtheclark
published 4.0.0 •

Changelog

Source

4.0.0

  • Update focus-trap to 3.0.0, which includes a couple of behavior changes. The key change is that focus management has been changed so that you can include tricky focusable elements like radio groups, iframes, and shadow DOM components in your trap — as long as the first and last focusable elements in the trap can still be detected by Tabbable.
    • An effect of this change is that positive tabindexes are no longer guaranteed to work as expected. You should avoid these.
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc