Skip to content

Commit

Permalink
Merge 15c6490 into a8b7aa0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay committed Mar 3, 2017
2 parents a8b7aa0 + 15c6490 commit 6f06055
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/components/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default class Modal extends Component {
portalClassName: React.PropTypes.string,
appElement: React.PropTypes.instanceOf(SafeHTMLElement),
onAfterOpen: React.PropTypes.func,
onAfterClose: React.PropTypes.func,
onRequestClose: React.PropTypes.func,
closeTimeoutMS: React.PropTypes.number,
ariaHideApp: React.PropTypes.bool,
Expand Down
4 changes: 4 additions & 0 deletions lib/components/ModalPortal.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default class ModalPortal extends Component {
closeTimeoutMS: PropTypes.number,
shouldCloseOnOverlayClick: PropTypes.bool,
onRequestClose: PropTypes.func,
onAfterClose: React.PropTypes.func,
className: PropTypes.string,
overlayClassName: PropTypes.string,
defaultStyles: PropTypes.shape({
Expand Down Expand Up @@ -97,6 +98,9 @@ export default class ModalPortal extends Component {
afterClose = () => {
returnFocus();
teardownScopedFocus();
if (this.props.onAfterClose) {
this.props.onAfterClose();
}
}

open () {
Expand Down

0 comments on commit 6f06055

Please sign in to comment.