Toast: don't close toast on action button click
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.9k
- Forks
- 1.1k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 57
Description
Package
v4.x
Description
There is no way to keep the toast open after an action button click.
I could be helpful to prevent this behavior by an option or by using preventDefault.
Nuxt UI is using ToastAction which surround slot with the ToastClose which automatically close the current toast.
I think, we need a change from Reka UI.
Additional context
- Open a toast by clicking on the TOAST button
- Click on the COPY action button
- Toast is closed, and I want to update the current toast with another action text and color (code copied).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ToastAction and ToastClose entry points in the Reka UI integration and reproduce the linked example to trace why the action closes the toast. Done means an action can preserve the current toast so its text and color can be updated afterward; the issue indicates that the required change may belong in Reka UI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nuxtjs, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100