Skip to content

Commit

Permalink
Modal: add restoreFocus option
Browse files Browse the repository at this point in the history
Allow to specify if last focus should be restored after hiding modal
  • Loading branch information
erykpiast committed Feb 15, 2017
1 parent 45f2b05 commit bd76a90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Modal.js
Expand Up @@ -61,6 +61,12 @@ const propTypes = {
* the Modal work well with assistive technologies, such as screen readers.
*/
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 bd76a90

Please sign in to comment.