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
{{ message }}
Repository navigation
[BUG] Toast randomly not dismissing in Windows #3014
I have an application using CommunityToolkit.Maui.Alerts.Toast displaying important information for the user. In my case it's mandatory to dismiss the current showig Toast when a new Toast is ready to be shown.
From docs:
You can display only one Toast at a time. If you call the Show method a second time, the first Toast will automatically be dismissed.
The problem seems to be having a maximum time to dismiss a Toast. If that time passes, that Toast won't be dismissed. Even if you manually try to:
Here a gif showing the current behaviour from my sample application:
The sample just counts the number of clicks and displays it using Toast. When I hit 119 clicks, I wait long enough to not be able to dismiss the Toast. Not even manually.
Expected Behavior
To be able to dismiss the current Toast whenever I need to show a new one.
Steps To Reproduce
Open solution from reproduction project repository.
You'll find just a page with two buttons. Show toast (just shows a new Toast) and Manually dismiss and show toast (manually dismiss current Toast and shows a new one).
Follow the attached gif. Just click one button and wait long enough to click it again. After that you will be able to click multiple times either one of them and new Toast won't show.
Activity