Hi Caio,
Could you provide a sample to knows how to use this component, please?
Hi Leandro,
See the attached demo for an example of how to implement this component.
In this demo, the component is included in the screen's OnInitialize which sets up the event listener that shows a confirmation dialog when navigating to another page or refreshing, for example.
Let me check it!
Thank you, João!
Is there a way to prevent browsing to another screen or logging out of the application?
The problem is the before unload doesn't run when the user navigates to different screen in the sample reactive application because it's a single page application so the page is not unloaded.
I haven't found a solution for that yet. If someone knows a solution please let me know.