Skip to content

Commit

Permalink
Merge pull request #2482 from erykpiast/patch-1
Browse files Browse the repository at this point in the history
Modal: add restoreFocus option
  • Loading branch information
taion committed Mar 7, 2017
2 parents c87409a + 2f3d6be commit 24cf384
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -124,7 +124,7 @@
"dom-helpers": "^3.2.0",
"invariant": "^2.2.1",
"keycode": "^2.1.2",
"react-overlays": "^0.6.11",
"react-overlays": "^0.6.12",
"react-prop-types": "^0.4.0",
"uncontrollable": "^4.0.1",
"warning": "^3.0.0"
Expand Down
6 changes: 6 additions & 0 deletions src/Modal.js
Expand Up @@ -62,6 +62,12 @@ const propTypes = {
*/
enforceFocus: React.PropTypes.bool,

/**
* When `true` The modal will restore focus to previously focused element once
* modal is hidden
*/
restoreFocus: React.PropTypes.bool,

/**
* When `true` The modal will show itself.
*/
Expand Down

0 comments on commit 24cf384

Please sign in to comment.