Skip to content

Commit

Permalink
fix(Snackbar): allow dataAttributes passed to openSnackbar (#1192)
Browse files Browse the repository at this point in the history
  • Loading branch information
atabel authored Aug 13, 2024
1 parent 41c10ad commit c5c65bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/snackbar-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const SnackbarRoot = ({children}: {children: React.ReactNode}): JSX.Eleme
duration={currentSnackbar.duration}
type={currentSnackbar.type}
withDismiss={currentSnackbar.withDismiss}
dataAttributes={currentSnackbar.dataAttributes}
onClose={handleClose}
/>
</React.Suspense>
Expand Down
2 changes: 2 additions & 0 deletions src/snackbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ const Snackbar = React.forwardRef<ImperativeHandle & HTMLDivElement, Props>(
onClose: onCloseProp = () => {},
type = 'INFORMATIVE',
withDismiss,
dataAttributes,
},
ref
) => {
Expand Down Expand Up @@ -264,6 +265,7 @@ const Snackbar = React.forwardRef<ImperativeHandle & HTMLDivElement, Props>(
type={type}
onClose={onCloseRef.current}
withDismiss={withDismiss}
dataAttributes={dataAttributes}
/>
);
}
Expand Down

1 comment on commit c5c65bd

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-olpjecap6-flows-projects-65bb050e.vercel.app

Built with commit c5c65bd.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.