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

react-focus-trap

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-focus-trap - npm Package Versions

134

2.3.0

Diff

Changelog

Source

2.3.0

  • Removed "role" attribute from container. Otherwise, screen readers will read this as "Navigation. One item", since there's only one immediate readable child.
  • Fixed deprecation warnings with React 15.x
nhunzaker
published 2.2.0 •

Changelog

Source

2.2.0

  • Added looser react peer dependency declaration
nhunzaker
published 2.1.0 •

Changelog

Source

2.1.0

  • Refactor internals to eliminate some weight
  • Adds additional check to prevent focus() from being called on null anchors
nhunzaker
published 1.1.2 •

nhunzaker
published 2.0.0 •

Changelog

Source

2.0.0

  • Important Update: This update makes breaking changes to support React 0.14. This is because react-focus-trap depends on React.findDOMNode. Version 1.0 will continue to receive support for versions of React before 0.14.0.
nhunzaker
published 1.1.1 •

Changelog

Source

1.1.1

  • Fix conditional that would prevent return of focus
nhunzaker
published 1.2.0 •

nhunzaker
published 1.1.0 •

Changelog

Source

1.1.0

  • Add conditional around document access to allow isomorphic rendering
  • Bump dependency list to allow for React 0.14. This will still expose warnings in the console about deprecation warnings, however it should unblock 0.14 development in the meantime.
nhunzaker
published 1.0.3 •

Changelog

Source

1.0.3

  • The previous fix for focusing a nully anchor introduced a new bug: it would not focus on the anchor. This version changes the way the focus method is identified to fix this bug.
nhunzaker
published 1.0.2 •

Changelog

Source

1.0.2

  • Fixed case where anchor was lost transitioning between two pages with focus traps via hash URL routing.
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