Skip to content

Commit

Permalink
chore: Hide the close button when toastType is loading (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
ynng3 authored Feb 16, 2025
1 parent ccd132a commit cec5a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ const Toast = (props: ToastProps) => {
toastRef.current?.style.setProperty('--swipe-amount-y', `${swipeAmount.y}px`);
}}
>
{closeButton && !toast.jsx ? (
{closeButton && !toast.jsx && toastType !== 'loading' ? (
<button
aria-label={closeButtonAriaLabel}
data-disabled={disabled}
Expand Down

0 comments on commit cec5a85

Please sign in to comment.