You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unmount the dialog while open (eg in my case - by navigating away)
Return to the previous screen and mount the dialog back
Current behavior
If you try to follow steps above , you will see that dialog stays with state from before navigation.
And another example is straight base-ui.com - Controlled mode with multiple triggers.
Click any detached triggers from an example , navigate away and then navigate back. You won't see opened dialog but you won't be able to do anything on the page either. Definitely something going on with store or handle state clean up.
Bug report
Current behavior
If you try to follow steps above , you will see that dialog stays with state from before navigation.
And another example is straight base-ui.com - Controlled mode with multiple triggers.
Click any detached triggers from an example , navigate away and then navigate back. You won't see opened dialog but you won't be able to do anything on the page either. Definitely something going on with store or handle state clean up.
freecompress-Screen.Recording.2026-05-23.at.1.05.10.PM.2.mp4
Expected behavior
Feels like it should properly clean-up it's current state , so it behaves how any other dialogs without handle attached.
Reproducible example
https://stackblitz.com/edit/a9jtaf9i-rxzlgxqh?file=src%2Froute-with-dialog.tsx)
Base UI version
1.5.0 - but i am pretty sure i encountered the same behaviour on other versions.
Which browser are you using?
Chrome
Which OS are you using?
Mac OS
Which assistive tech are you using (if applicable)?
Additional context
https://discord.com/channels/1287292451308048406/1507703359660884079