react-onclickoutside
Advanced tools
Comparing version 4.1.1 to 4.2.0
@@ -108,3 +108,3 @@ /** | ||
var fn = this.__outsideClickHandler; | ||
if (global.document != null) { | ||
if (root.document != null) { | ||
document.addEventListener("mousedown", fn); | ||
@@ -121,3 +121,3 @@ document.addEventListener("touchstart", fn); | ||
var fn = this.__outsideClickHandler; | ||
if (global.document != null) { | ||
if (root.document != null) { | ||
document.removeEventListener("mousedown", fn); | ||
@@ -124,0 +124,0 @@ document.removeEventListener("touchstart", fn); |
{ | ||
"name": "react-onclickoutside", | ||
"version": "4.1.1", | ||
"version": "4.2.0", | ||
"description": "An onClickOutside mixin for React components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -129,4 +129,4 @@ # An onClickOutside mixin for React components | ||
If you still use React 0.13 or 0.12, any version up to and including 3.* will work. Any version v4.* or above will not work due to relying on modules not introduced until React 0.14. | ||
If you still use React 0.13 or 0.12, any version up to and including 2.4 will work. Any version v4.* or above will not work due to relying on modules not introduced until React 0.14. | ||
If you use React 0.14 or above, use v4.*, as that specifically uses `react-DOM` for the necessary DOM event bindings. | ||
If you use React 0.14 or above, use v2.5 or higher, as that specifically uses `react-DOM` for the necessary DOM event bindings. |
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
13024