react-onclickoutside
Advanced tools
Comparing version 5.0.1 to 5.1.0
11
index.js
@@ -126,2 +126,13 @@ /** | ||
/** | ||
* Track for disableOnClickOutside props changes and enable/disable click outside | ||
*/ | ||
componentWillReceiveProps: function(nextProps) { | ||
if (this.props.disableOnClickOutside && !nextProps.disableOnClickOutside) { | ||
this.enableOnClickOutside(); | ||
} else if (this.props.disableOnClickOutside && !nextProps.disableOnClickOutside) { | ||
this.disableOnClickOutside(); | ||
} | ||
}, | ||
/** | ||
* Remove the document's event listeners | ||
@@ -128,0 +139,0 @@ */ |
{ | ||
"name": "react-onclickoutside", | ||
"version": "5.0.1", | ||
"version": "5.1.0", | ||
"description": "An onClickOutside mixin for React components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ # An onClickOutside wrapper for React components |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ module.exports = function(config) { |
@@ -0,0 +0,0 @@ var React = require('react'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
20609
304