Skip to content

Commit

Permalink
filter toasts and heights by position
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalomo committed Jan 24, 2024
1 parent d4e5b6a commit 3681e0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,8 @@ const Toaster = (props: ToasterProps) => {
cancelButtonStyle={toastOptions?.cancelButtonStyle}
actionButtonStyle={toastOptions?.actionButtonStyle}
removeToast={removeToast}
toasts={toasts}
heights={heights}
toasts={toasts.filter(t => t.position == toast.position)}
heights={heights.filter(h => h.position == toast.position)}
setHeights={setHeights}
expandByDefault={expand}
gap={gap}
Expand Down

0 comments on commit 3681e0c

Please sign in to comment.