Skip to content

Commit

Permalink
[fixed] clean up modal styles if unmounted during exit transition
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Nov 14, 2015
1 parent be0eea6 commit f633476
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ const Modal = React.createClass({
},

componentWillUnmount() {
if (this.props.show) {
let { show, transition } = this.props;

if (show || (transition && !this.state.exited)) {
this.onHide();
}
},
Expand Down

0 comments on commit f633476

Please sign in to comment.