react-portal
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -119,3 +119,3 @@ import React from 'react'; | ||
if (!this.state.active) { return; } | ||
if (isNodeInRoot(e.target, findDOMNode(this.portal))) { return; } | ||
if (isNodeInRoot(e.target, findDOMNode(this.portal)) || e.target.tagName === 'HTML') { return; } | ||
e.stopPropagation(); | ||
@@ -122,0 +122,0 @@ this.closePortal(); |
@@ -6,3 +6,3 @@ { | ||
"author": "Vojtech Miksu <vojtech@miksu.cz>", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"license": "MIT", | ||
@@ -9,0 +9,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1831460
22349