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}); } };