From ff474f8170ae16c224d19fafa279d755095dac31 Mon Sep 17 00:00:00 2001 From: sebastiancbvz Date: Thu, 12 May 2016 14:00:44 +0200 Subject: [PATCH] Using this.props.closePortal is working properly now. --- lib/portal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/portal.js b/lib/portal.js index bf528b6..c44fab5 100644 --- a/lib/portal.js +++ b/lib/portal.js @@ -120,7 +120,7 @@ export default class Portal extends React.Component { } this.portal = null; this.node = null; - if (!isUnmounted) { + if (isUnmounted !== true) { this.setState({active: false}); } };