Skip to content

[toast] Prevent duplicate onClose calls for ending toasts#4280

Open
chuganzy wants to merge 1 commit intomui:masterfrom
chuganzy:toast-on-close
Open

[toast] Prevent duplicate onClose calls for ending toasts#4280
chuganzy wants to merge 1 commit intomui:masterfrom
chuganzy:toast-on-close

Conversation

@chuganzy
Copy link
Contributor

@chuganzy chuganzy commented Mar 6, 2026

This PR fixes an issue where onClose could be triggered multiple times when a toast is already in the ending state as pointed out here.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 6, 2026

commit: 3185f2b

@mui-bot
Copy link

mui-bot commented Mar 6, 2026

Bundle size report

Bundle Parsed size Gzip size
@base-ui/react 🔺+13B(0.00%) ▼-5B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@netlify
Copy link

netlify bot commented Mar 6, 2026

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 6f07016
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/69aabf5877aad500087d45a9
😎 Deploy Preview https://deploy-preview-4280--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@zannager zannager added the component: toast Changes related to the toast component. label Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: toast Changes related to the toast component.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants