react-onclickoutside
Advanced tools
Comparing version 5.3.1 to 5.3.2
@@ -109,3 +109,3 @@ /** | ||
ReactDOM.findDOMNode(instance), | ||
instance.handleClickOutside.bind(instance, undefined), | ||
instance.handleClickOutside.bind(instance), | ||
this.props.outsideClickIgnoreClass || IGNORE_CLASS, | ||
@@ -112,0 +112,0 @@ this.props.preventDefault || false, |
{ | ||
"name": "react-onclickoutside", | ||
"version": "5.3.1", | ||
"version": "5.3.2", | ||
"description": "An onClickOutside mixin for React components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,3 +15,7 @@ var React = require('react'); | ||
handleClickOutside: function() { | ||
handleClickOutside: function(event) { | ||
if (event === undefined) { | ||
throw new Error("event cannot be undefined"); | ||
} | ||
this.setState({ | ||
@@ -18,0 +22,0 @@ clickOutsideHandled: true |
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
21331
319