Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action/Cancel button can not be used with a custom toast #445

Open
hyoban opened this issue Jun 11, 2024 · 0 comments
Open

Action/Cancel button can not be used with a custom toast #445

hyoban opened this issue Jun 11, 2024 · 0 comments

Comments

@hyoban
Copy link
Contributor

hyoban commented Jun 11, 2024

Describe the feature / bug 📝:

Did you do this on purpose?

sonner/src/index.tsx

Lines 377 to 379 in bc74b2d

{toast.jsx || React.isValidElement(toast.title) ? (
toast.jsx || toast.title
) : (

Steps to reproduce the bug 🔁:

toast(<div>A custom toast with default styling</div>, {
  action: {
    label: "Action",
    onClick: () => console.log("Action!"),
  },
});

I am willing to submit a pull request for this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant