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
71
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

4.0.1

Diff

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

Changelog

Source

3.1.4

  • Re-add TypeScript declarations.
davidtheclark
published 3.1.3 •

Changelog

Source

3.1.3

  • Remove componentWillMount usage.
davidtheclark
published 3.1.2 •

Changelog

Source

3.1.2

  • Fix TypeScript declarations so props are available on the imported namespace.
davidtheclark
published 3.1.1 •

Changelog

Source

3.1.1

  • Fix React import in TypeScript declarations.
davidtheclark
published 3.1.0 •

Changelog

Source

3.1.0

  • Add TypeScript declarations.
davidtheclark
published 3.0.5 •

Changelog

Source

3.0.5

  • Prevent error in IE edge cases when the previously focused element does not have a focus() function.
davidtheclark
published 3.0.4 •

Changelog

Source

3.0.4

  • Allow React v16 peer dependency.
davidtheclark
published 3.0.3 •

Changelog

Source

3.0.3

  • Introduce dist/focus-trap-react.js, where src/ now compiles to, since React 15.5+ demands classes, so Babel-compilation. Which is actually a huge overhaul, though in semver it's just a patch.
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