From 08bf92098f6737c944708a4ee27f6080f0c42790 Mon Sep 17 00:00:00 2001 From: Galimov Ruslan Date: Thu, 15 Dec 2016 10:15:47 +0400 Subject: [PATCH] [fixed] closeTimeoutMS doesn't work without onRequestClose (#278) --- lib/components/ModalPortal.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/components/ModalPortal.js b/lib/components/ModalPortal.js index 2f73af5c..e7d056a0 100644 --- a/lib/components/ModalPortal.js +++ b/lib/components/ModalPortal.js @@ -90,8 +90,6 @@ var ModalPortal = module.exports = React.createClass({ }, close: function() { - if (!this.ownerHandlesClose()) - return; if (this.props.closeTimeoutMS > 0) this.closeWithTimeout(); else