Skip to content

Commit

Permalink
[fixed] closeTimeoutMS doesn't work without onRequestClose (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
galimru authored and claydiffrient committed Dec 15, 2016
1 parent 6c68e95 commit 08bf920
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/components/ModalPortal.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ var ModalPortal = module.exports = React.createClass({
},

close: function() {
if (!this.ownerHandlesClose())
return;
if (this.props.closeTimeoutMS > 0)
this.closeWithTimeout();
else
Expand Down

0 comments on commit 08bf920

Please sign in to comment.