Skip to content

Commit

Permalink
fix(Modal): set focus state before showing (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-johnson authored and eddywashere committed Aug 19, 2016
1 parent bc185d8 commit a358233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class Modal extends React.Component {

togglePortal() {
if (this.props.isOpen) {
this.show();
this._focus = true;
this.show();
} else {
this.hide();
}
Expand Down

0 comments on commit a358233

Please sign in to comment.