react-onclickoutside
Advanced tools
Comparing version 4.3.0 to 4.5.0
@@ -25,3 +25,3 @@ /** | ||
// that support module.exports | ||
module.exports = factory(require(root, 'react-dom')); | ||
module.exports = factory(root, require('react-dom')); | ||
} else { | ||
@@ -111,3 +111,3 @@ // Browser globals (root is window) | ||
var fn = this.__outsideClickHandler; | ||
if (root.document != null) { | ||
if (document != null) { | ||
document.addEventListener("mousedown", fn); | ||
@@ -124,3 +124,3 @@ document.addEventListener("touchstart", fn); | ||
var fn = this.__outsideClickHandler; | ||
if (root.document != null) { | ||
if (document != null) { | ||
document.removeEventListener("mousedown", fn); | ||
@@ -127,0 +127,0 @@ document.removeEventListener("touchstart", fn); |
{ | ||
"name": "react-onclickoutside", | ||
"version": "4.3.0", | ||
"version": "4.5.0", | ||
"description": "An onClickOutside mixin for React components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
0
13089