From ab3ce97f8fee9f5cccdc8eb4046a10a0acedb614 Mon Sep 17 00:00:00 2001 From: Can Rau Date: Fri, 29 Dec 2023 19:15:06 -0500 Subject: [PATCH] fix: missing `event` argument --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 8fa93d3..b22cd52 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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) {