Skip to content

Commit a358233

Browse files
tyler-johnsoneddywashere
authored andcommitted
fix(Modal): set focus state before showing (#104)
1 parent bc185d8 commit a358233

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Modal.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ class Modal extends React.Component {
7878

7979
togglePortal() {
8080
if (this.props.isOpen) {
81-
this.show();
8281
this._focus = true;
82+
this.show();
8383
} else {
8484
this.hide();
8585
}

0 commit comments

Comments
 (0)