We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 579bcaa commit 247bd40Copy full SHA for 247bd40
src/PortalWithState.js
@@ -72,7 +72,9 @@ class PortalWithState extends React.Component {
72
if (!this.state.active) {
73
return;
74
}
75
- const root = this.portalNode && (this.portalNode.props.node || this.portalNode.defaultNode);
+ const root =
76
+ this.portalNode &&
77
+ (this.portalNode.props.node || this.portalNode.defaultNode);
78
if (!root || root.contains(e.target) || (e.button && e.button !== 0)) {
79
80
0 commit comments