ui-kit-ck-consultant 0.5.309 → 0.5.311
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -101,11 +101,11 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
101
101
|
if (e.target === e.currentTarget && !this.props.disableClose) {
|
102
102
|
if (this.props.closeMessage) {
|
103
103
|
if (window.confirmCustom) {
|
104
|
-
window.confirmCustom(this.props.closeMessage
|
104
|
+
window.confirmCustom(this.props.closeMessage, function (result) {
|
105
105
|
if (result) {
|
106
106
|
_this2.props.onClose();
|
107
107
|
}
|
108
|
-
};
|
108
|
+
});
|
109
109
|
} else {
|
110
110
|
if (window.confirm(this.props.closeMessage)) {
|
111
111
|
this.props.onClose();
|
@@ -163,11 +163,11 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
163
163
|
onClick: function onClick() {
|
164
164
|
if (_this3.props.closeMessage) {
|
165
165
|
if (window.confirmCustom) {
|
166
|
-
window.confirmCustom(_this3.props.closeMessage
|
166
|
+
window.confirmCustom(_this3.props.closeMessage, function (result) {
|
167
167
|
if (result) {
|
168
168
|
_this3.props.onClose();
|
169
169
|
}
|
170
|
-
};
|
170
|
+
});
|
171
171
|
} else {
|
172
172
|
if (window.confirm(_this3.props.closeMessage)) {
|
173
173
|
_this3.props.onClose();
|