Vaadin 24.7.2 doesn't show Notification

I just upgraded to 24.7.2 and one of my tests fails because a Notification is no longer shown.

My code is like this:

Notification.show(getTranslation("Email.sent"), 5000, Notification.Position.TOP_END);
UI.getCurrent().navigate(DashboardView.class);

With 24.7.1, the Notification is visible; with 24.7.2, there is no Notification.

What has changed that could affect that behavior?

There was a change that could be possibly related:

Can confirm. Same problem on my side.

I used to have this in the past - my workaround is to change both code lines.


UI.getCurrent().navigate(DashboardView.class);
Notification.show(getTranslation("Email.sent"), 5000, Notification.Position.TOP_END);

1 Like

I’ve created an issue: Notification not shown after navigation · Issue #21310 · vaadin/flow · GitHub

IMO This is a blocker because it’s impossible to find where the notification is created before the navigation.

1 Like