We are currently using the default browser functionality for confirming navigation away from the quiz. The limitation of this is that browsers can choose if they will ignore this (we are currently seeing this on mobile devices). Create a custom confirmation model that is triggered on ngOnDestroy, to confirm the user's intentions to leave.
We are currently using the default browser functionality for confirming navigation away from the quiz. The limitation of this is that browsers can choose if they will ignore this (we are currently seeing this on mobile devices). Create a custom confirmation model that is triggered on ngOnDestroy, to confirm the user's intentions to leave.
See https://designsystem.digital.gov/components/modal/ for guidance on implementation and design.