Bug: unsaved changes confirmation when clicking on page navigation links
Bug Report
Title: Unsaved changes confirmation when clicking on page navigation links
Description:
-
What is the bug?
Editor doesn't show the confirmation prompt when there are unsaved changes in the editor and the user clicks on a <button>, <Link>, <a> element, or the back button in the browser.
-
What should have happened?
Editor should always show a confirmation dialogue, when unsaved changes are about to be lost.
-
What actually happened?
Steps to Reproduce:
- Go to the Edit exhibition page.
- Make changes in the editor, click on any navbar link or browser back button.
- See that no confirmation dialogue is shown and changes aren't saved.
Expected Behavior:
Editor should always show the confirmation prompt when the user is about to navigate out of the editor with unsaved changes.
Screenshots / Videos:
Environment:
-
OS:
-
Browser:
-
Device:
-
App Version or Build: