Skip to content

Commit

Permalink
fix: missing event argument
Browse files Browse the repository at this point in the history
  • Loading branch information
CanRau authored Dec 30, 2023
1 parent e05e128 commit ab3ce97
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 @@ -361,7 +361,7 @@ const Toast = (props: ToastProps) => {
data-button
data-cancel
style={toast.cancelButtonStyle || cancelButtonStyle}
onClick={() => {
onClick={(event) => {
if (!dismissible) return;
deleteToast();
if (toast.cancel?.onClick) {
Expand Down

0 comments on commit ab3ce97

Please sign in to comment.