ui-kit-ck-consultant 0.5.307 → 0.5.308
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +17 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -147,7 +147,23 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
147
147
|
icon: freeSolidSvgIcons.faCheck
|
148
148
|
}) : ''), !this.props.disableClose ? /*#__PURE__*/React__default.createElement("div", {
|
149
149
|
className: style.modal_close,
|
150
|
-
onClick:
|
150
|
+
onClick: function onClick() {
|
151
|
+
if (_this2.props.closeMessage) {
|
152
|
+
if (window.confirmCustom) {
|
153
|
+
window.confirmCustom(_this2.props.closeMessage), function () {
|
154
|
+
if (result) {
|
155
|
+
_this2.props.onClose();
|
156
|
+
}
|
157
|
+
};
|
158
|
+
} else {
|
159
|
+
if (window.confirm(_this2.props.closeMessage)) {
|
160
|
+
_this2.props.onClose();
|
161
|
+
}
|
162
|
+
}
|
163
|
+
} else {
|
164
|
+
_this2.props.onClose();
|
165
|
+
}
|
166
|
+
}
|
151
167
|
}, this.props.iconClose ? this.props.iconClose : /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
152
168
|
icon: freeSolidSvgIcons.faTimes
|
153
169
|
})) : null), /*#__PURE__*/React__default.createElement("div", {
|