@doist/reactist 28.1.2 → 28.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1479,18 +1479,26 @@ const InternalToast = /*#__PURE__*/React__default["default"].forwardRef(function
1479
1479
  */
1480
1480
 
1481
1481
  const actionWithCustomActionHandler = React__default["default"].useMemo(() => {
1482
+ var _action$closeToast;
1483
+
1482
1484
  if (!isActionObject(action)) {
1483
1485
  return action;
1484
1486
  }
1485
1487
 
1486
1488
  return _objectSpread2(_objectSpread2({}, action), {}, {
1489
+ closeToast: (_action$closeToast = action.closeToast) != null ? _action$closeToast : true,
1487
1490
  onClick: function handleActionClick() {
1491
+ var _action$closeToast2;
1492
+
1488
1493
  if (!action) {
1489
1494
  return;
1490
1495
  }
1491
1496
 
1492
1497
  action.onClick();
1493
- removeToast();
1498
+
1499
+ if ((_action$closeToast2 = action.closeToast) != null ? _action$closeToast2 : true) {
1500
+ removeToast();
1501
+ }
1494
1502
  }
1495
1503
  });
1496
1504
  }, [action, removeToast]);