react-modal-dialog
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -138,4 +138,7 @@ 'use strict'; | ||
} | ||
if (target === _this.refs.self || _this.refs.self.contains(target)) return false; | ||
if (!_this.props.dismissOnBackgroundClick) { | ||
if (target !== _this.refs.self || _this.refs.self.contains(target)) return false; | ||
} else { | ||
if (target === _this.refs.self || _this.refs.self.contains(target)) return false; | ||
} | ||
return true; | ||
@@ -244,3 +247,4 @@ }; | ||
recenter: _react.PropTypes.func.isRequired, | ||
top: _react.PropTypes.number | ||
top: _react.PropTypes.number, | ||
dismissOnBackgroundClick: _react.PropTypes.bool | ||
}, | ||
@@ -252,3 +256,4 @@ enumerable: true | ||
width: 'auto', | ||
margin: 20 | ||
margin: 20, | ||
dismissOnBackgroundClick: true | ||
}, | ||
@@ -255,0 +260,0 @@ enumerable: true |
{ | ||
"name": "react-modal-dialog", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"description": "A simple, idiomatic, and declarative way to launch modal dialogs in ReactJS", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
59484
12
807