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

5.0.0

Diff

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