ui-kit-ck-consultant 0.5.310 → 0.5.311

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -104,7 +104,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
104
104
  if (e.target === e.currentTarget && !this.props.disableClose) {
105
105
  if (this.props.closeMessage) {
106
106
  if (window.confirmCustom) {
107
- window.confirmCustom(this.props.closeMessage, function () {
107
+ window.confirmCustom(this.props.closeMessage, function (result) {
108
108
  if (result) {
109
109
  _this2.props.onClose();
110
110
  }
@@ -166,7 +166,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
166
166
  onClick: function onClick() {
167
167
  if (_this3.props.closeMessage) {
168
168
  if (window.confirmCustom) {
169
- window.confirmCustom(_this3.props.closeMessage, function () {
169
+ window.confirmCustom(_this3.props.closeMessage, function (result) {
170
170
  if (result) {
171
171
  _this3.props.onClose();
172
172
  }