diff --git a/lib/portal.js b/lib/portal.js index 6a3eaf3..9b62b27 100644 --- a/lib/portal.js +++ b/lib/portal.js @@ -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();