react-onclickoutside
Advanced tools
Comparing version 5.3.2 to 5.3.3
@@ -36,3 +36,3 @@ /** | ||
*/ | ||
var generateOutsideCheck = function(componentNode, eventHandler, ignoreClass, preventDefault, stopPropagation) { | ||
var generateOutsideCheck = function(componentNode, componentInstance, ignoreClass, preventDefault, stopPropagation) { | ||
return function(evt) { | ||
@@ -60,3 +60,3 @@ if (preventDefault) { | ||
if(current !== document) return; | ||
eventHandler(evt); | ||
componentInstance.handleClickOutside.bind(componentInstance, evt)(); | ||
} | ||
@@ -111,3 +111,3 @@ }; | ||
ReactDOM.findDOMNode(instance), | ||
instance.handleClickOutside.bind(instance), | ||
instance, | ||
this.props.outsideClickIgnoreClass || IGNORE_CLASS, | ||
@@ -114,0 +114,0 @@ this.props.preventDefault || false, |
{ | ||
"name": "react-onclickoutside", | ||
"version": "5.3.2", | ||
"version": "5.3.3", | ||
"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
21352