Skip to content

Commit

Permalink
Merge branch 'Sediug-dev'
Browse files Browse the repository at this point in the history
* Sediug-dev:
  Fix bug re-open when the component has an outside click listener and someone click in the wrapper button (to close it)
  • Loading branch information
tajo committed May 3, 2016
2 parents db67c51 + d21982c commit 4a533f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 4a533f9

Please sign in to comment.