react-onclickoutside
Advanced tools
Comparing version 4.1.0 to 4.1.1
12
index.js
@@ -108,4 +108,6 @@ /** | ||
var fn = this.__outsideClickHandler; | ||
document.addEventListener("mousedown", fn); | ||
document.addEventListener("touchstart", fn); | ||
if (global.document != null) { | ||
document.addEventListener("mousedown", fn); | ||
document.addEventListener("touchstart", fn); | ||
} | ||
}, | ||
@@ -119,4 +121,6 @@ | ||
var fn = this.__outsideClickHandler; | ||
document.removeEventListener("mousedown", fn); | ||
document.removeEventListener("touchstart", fn); | ||
if (global.document != null) { | ||
document.removeEventListener("mousedown", fn); | ||
document.removeEventListener("touchstart", fn); | ||
} | ||
} | ||
@@ -123,0 +127,0 @@ }; |
{ | ||
"name": "react-onclickoutside", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"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
13018
231