Skip to content

Commit

Permalink
add additional check to Modal componentWillUpdate, fixes #81
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Abruzzo committed Apr 28, 2016
1 parent 92171fb commit d2db8c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ const Modal = React.createClass({
},

componentWillUpdate(nextProps){
if (nextProps.show) {
if (!this.props.show && nextProps.show) {
this.checkForFocus();
}
},
Expand Down

0 comments on commit d2db8c3

Please sign in to comment.