Skip to content

Commit

Permalink
Merge pull request tajo#67 from gucheen/master
Browse files Browse the repository at this point in the history
fix handleOutsideMouseClick on safari(iPhone)
  • Loading branch information
tajo committed May 2, 2016
2 parents b8185b0 + 263a96b commit 8c81c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default class Portal extends React.Component {
if (!this.state.active) { return; }

const root = findDOMNode(this.portal);
if (root.contains(e.target) || e.button !== 0) { return; }
if (root.contains(e.target) || (e.button && e.button !== 0)) { return; }

e.stopPropagation();
this.closePortal();
Expand Down

0 comments on commit 8c81c64

Please sign in to comment.