Skip to content

Commit b0510f7

Browse files
author
Hector Arce De Las Heras
committed
Fix onClick event snackbar component
1 parent d0c513d commit b0510f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/snackbar/snackbarStandAlone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const SnackbarStandAloneComponent = (
130130
<ElementOrIcon
131131
customIconStyles={props.styles?.closeIcon}
132132
dataTestId={`${props.dataTestId}Icon`}
133-
onClick={props.onCloseButtonClick(false)}
133+
onClick={e => props.onCloseButtonClick(false)(e)}
134134
{...props.closeIcon}
135135
/>
136136
</ButtonWrapper>

0 commit comments

Comments
 (0)