Skip to content

Commit

Permalink
fix(Toast): add optional event arg to Toast onClose (#6068)
Browse files Browse the repository at this point in the history
correct the type signator for the Toast component onClose property

fixes #5726
  • Loading branch information
BerniWittmann committed Oct 4, 2021
1 parent 0bb7b42 commit 3fc5b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface ToastProps
animation?: boolean;
autohide?: boolean;
delay?: number;
onClose?: () => void;
onClose?: (e?: React.MouseEvent | React.KeyboardEvent) => void;
show?: boolean;
transition?: TransitionComponent;
bg?: Variant;
Expand Down

0 comments on commit 3fc5b57

Please sign in to comment.