react-relative-portal
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -57,4 +57,6 @@ 'use strict'; | ||
_this.handleOutClick = function (e) { | ||
if (!isDescendant(_reactDom2.default.findDOMNode(_this.element), e.target)) { | ||
_this.props.onOutClick(); | ||
if (typeof _this.props.onOutClick === 'function') { | ||
if (!isDescendant(_reactDom2.default.findDOMNode(_this.element), e.target)) { | ||
_this.props.onOutClick(); | ||
} | ||
} | ||
@@ -61,0 +63,0 @@ }; |
@@ -45,2 +45,3 @@ 'use strict'; | ||
document.body.addEventListener('mousewheel', (0, _debounce2.default)(fireListeners, 100, true)); | ||
window.addEventListener('resize', (0, _debounce2.default)(fireListeners, 50, true)); | ||
} | ||
@@ -47,0 +48,0 @@ |
{ | ||
"name": "react-relative-portal", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "React component for place dropdowns outside overflow: hidden; elements", | ||
@@ -5,0 +5,0 @@ "main": "dist/RelativePortal.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
14410
217