react-outer-click
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -94,7 +94,8 @@ 'use strict'; | ||
OuterClick.defaultProps = { | ||
as: 'div' | ||
as: 'div', | ||
children: null | ||
}; | ||
OuterClick.propTypes = { | ||
as: PropTypes.elementType, | ||
children: PropTypes.element.isRequired, | ||
children: PropTypes.node, | ||
onOuterClick: PropTypes.func.isRequired | ||
@@ -101,0 +102,0 @@ }; |
@@ -87,7 +87,8 @@ import PropTypes from 'prop-types'; | ||
OuterClick.defaultProps = { | ||
as: 'div' | ||
as: 'div', | ||
children: null | ||
}; | ||
OuterClick.propTypes = { | ||
as: PropTypes.elementType, | ||
children: PropTypes.element.isRequired, | ||
children: PropTypes.node, | ||
onOuterClick: PropTypes.func.isRequired | ||
@@ -94,0 +95,0 @@ }; |
{ | ||
"name": "react-outer-click", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "React component and hook which detect mouse clicks outside of itself.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.cjs.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
9975
167