Skip to content

Commit

Permalink
fix handleOutsideMouseClick on safari(iPhone)
Browse files Browse the repository at this point in the history
  • Loading branch information
gucheen committed Apr 29, 2016
1 parent b8185b0 commit 263a96b
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 263a96b

Please sign in to comment.