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
The BeforeLeaveEvent is triggered only when you navigate via Router, e.g. click RouterLink or call ui.navigate for navigation.
There is a remark in BeforeLeaveObserver JavaDoc
* If a route target is left for reasons not under the control of the navigator* (for instance using* {@link com.vaadin.flow.component.page.Page#setLocation(URI)}, typing a URL* into the address bar, or closing the browser), listeners are not called.
However, the navigation within the Breadcrumb is implemented using Href and Strings. Obviously, someone navigating back using the breadcrumb will loose its data without having been warned.
The implementation should be:
Either change in order to use the "standard" navigation object from Vaadin Flow.
Either extended in order to bring the possibiltiy to choose between RouterLink or simple Href.
The text was updated successfully, but these errors were encountered:
The following is kown:
However, the navigation within the Breadcrumb is implemented using Href and Strings. Obviously, someone navigating back using the breadcrumb will loose its data without having been warned.
The implementation should be:
The text was updated successfully, but these errors were encountered: