Skip to content

Commit 2f8b8b6

Browse files
notifications: toaster container closes when empty (#12457)
The commit adds a condition so that the toaster container will close when empty. The issue was found when testing 12446. When seemingly it needed two `esc`. Signed-off-by: FernandoAscencio <[email protected]>
1 parent 47b946e commit 2f8b8b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/messages/src/browser/notifications-manager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class NotificationManager extends MessageClient {
131131
return;
132132
}
133133
this.deferredResults.delete(messageId);
134-
if (this.centerVisible && this.notifications.size === 0) {
134+
if ((this.centerVisible && !this.notifications.size) || (this.toastsVisible && !this.toasts.size)) {
135135
this.visibilityState = 'hidden';
136136
}
137137
result.resolve(action);

0 commit comments

Comments
 (0)