Skip to content

Commit 19de546

Browse files
committed
Merge pull request react-bootstrap#82 from vga-/master
add additional check to Modal componentWillUpdate, fixes react-bootstrap#81
2 parents 92171fb + d2db8c3 commit 19de546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ const Modal = React.createClass({
301301
},
302302

303303
componentWillUpdate(nextProps){
304-
if (nextProps.show) {
304+
if (!this.props.show && nextProps.show) {
305305
this.checkForFocus();
306306
}
307307
},

0 commit comments

Comments
 (0)