Socket
Socket
Sign inDemoInstall

focus-trap-react

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

focus-trap-react - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

4

package.json
{
"name": "focus-trap-react",
"version": "0.1.0",
"version": "0.2.0",
"description": "A React component that traps focus.",

@@ -55,3 +55,3 @@ "main": "index.js",

"dependencies": {
"focus-trap": "^0.1.0",
"focus-trap": "^0.2.0",
"react": "0.13.x"

@@ -58,0 +58,0 @@ },

@@ -1,2 +0,2 @@

# focus-trap-react
# focus-trap-react [![Build Status](https://travis-ci.org/davidtheclark/focus-trap-react.svg?branch=0.1.0)](https://travis-ci.org/davidtheclark/focus-trap-react)

@@ -106,3 +106,5 @@ A React component that traps focus.

By default, when the `FocusTrap` activates it will pass focus to the first element in its tab order. If you want that initial focus to pass to some other element (e.g. a Submit button at the bottom of a modal dialog), pass **the `id` of the element that should receive initial focus** when the `FocusTrap` activates.
By default, when the `FocusTrap` activates it will pass focus to the first element in its tab order. If you want that initial focus to pass to some other element (e.g. a Submit button at the bottom of a modal dialog),
pass **a selector identifying the element that should receive initial focus** when the `FocusTrap` activates.
(This will be passed to `document.querySelector()` to find the element.)

@@ -109,0 +111,0 @@ See `demo/demo-two.jsx`.

Sorry, the diff of this file is not supported yet

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