diff --git a/lib/portal.js b/lib/portal.js index c210f0a..bf528b6 100644 --- a/lib/portal.js +++ b/lib/portal.js @@ -98,6 +98,10 @@ export default class Portal extends React.Component { handleWrapperClick(e) { e.preventDefault(); e.stopPropagation(); + + // when having outside mouse click listener don't open portal if it's already open + if (this.state.active) { return; } + this.openPortal(); }