Skip to content

Commit

Permalink
Hide the close button when toastType is loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ynng3 authored Nov 11, 2024
1 parent 55c42f8 commit e572d94
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 @@ -331,7 +331,7 @@ const Toast = (props: ToastProps) => {
toastRef.current?.style.setProperty('--swipe-amount', `${swipeAmount}px`);
}}
>
{closeButton && !toast.jsx ? (
{closeButton && !toast.jsx && toastType !== 'loading' ? (
<button
aria-label={closeButtonAriaLabel}
data-disabled={disabled}
Expand Down

0 comments on commit e572d94

Please sign in to comment.