react-confirm-alert
Advanced tools
Comparing version 2.0.7 to 2.1.0
@@ -49,2 +49,4 @@ 'use strict'; | ||
_this.close(); | ||
}, _this.handleClickOverlay = function (e) { | ||
if (e.target === _this.overlay) _this.close(); | ||
}, _this.close = function () { | ||
@@ -94,3 +96,9 @@ removeBodyClass(); | ||
'div', | ||
{ className: 'react-confirm-alert-overlay' }, | ||
{ | ||
className: 'react-confirm-alert-overlay', | ||
ref: function ref(dom) { | ||
return _this2.overlay = dom; | ||
}, | ||
onClick: this.handleClickOverlay | ||
}, | ||
_react2.default.createElement( | ||
@@ -97,0 +105,0 @@ 'div', |
{ | ||
"name": "react-confirm-alert", | ||
"version": "2.0.7", | ||
"version": "2.1.0", | ||
"description": "react component confirm dialog.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.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
15518
295