focus-trap-react
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8282
143
+ Addedfocus-trap@0.2.0(transitive)
- Removedfocus-trap@0.1.0(transitive)
Updatedfocus-trap@^0.2.0