This PR implements a check to ensure that users aren't losing work when they navigate off a page after making changes to any field. This won't occur in scenarios where a user is submitting a form, but will based on browser navigation or clicking on links. Note that this will not work in all browsers - a few niche browsers intentionally block the ability to block page navigation.
This wasn't been implemented on the student facing side as that uses a different blob of js and would need further investigation.
Closes #408
This PR implements a check to ensure that users aren't losing work when they navigate off a page after making changes to any field. This won't occur in scenarios where a user is submitting a form, but will based on browser navigation or clicking on links. Note that this will not work in all browsers - a few niche browsers intentionally block the ability to block page navigation.
This wasn't been implemented on the student facing side as that uses a different blob of js and would need further investigation.
In Firefox, for example: