Skip to content

feat(Toast): add closeOnClick to actions - #7147

Merged
benjamincanac merged 88 commits into
v4from
feat/toast-action-close-on-click
Oct 7, 2026
Merged

benjamincanac merged 88 commits into
v4from
feat/toast-action-close-on-click

Conversation

@benjamincanac

@benjamincanac benjamincanac commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

🔗 Linked issue

Resolves #6424

Replaces #7132, which GitHub marked as merged when the stack was reordered.

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Reka UI 2.11 adds closeOnClick to ToastAction (unovue/reka-ui#2673). Clicking an action always closed the toast until now.

This accepts closeOnClick on each item of the actions prop and forwards it to ToastAction, so an action can keep its toast open:

toast.add({
  title: 'Uploading',
  actions: [{ label: 'Pause', closeOnClick: false, onClick: pause }]
})

The key is stripped before the rest is bound to the Button.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Base automatically changed from feat/input-number-starting-value to v4 October 7, 2026 14:13
@benjamincanac
benjamincanac merged commit 378873a into v4 Oct 7, 2026
35 checks passed
@benjamincanac
benjamincanac deleted the feat/toast-action-close-on-click branch October 7, 2026 14:51

This branch was successfully deployed

2 active deployments
Preview – ui — ea4a7927 Deployed Oct 7, 2026 by vercel[bot]
Preview – ui-repl — ea4a7927 Deployed Oct 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Toast: don't close toast on action button click

1 participant