[Usability] Editor Escape key does not check for unsaved changes #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Pressing Escape while in the editor navigates back to dashboard without prompting the user about unsaved changes. This can lead to data loss.
Current behavior
Expected behavior
Should check
hasChangesflag and prompt user before navigating away.Recommendation
Modify the Escape handler to call
handleCancel()which already has the unsaved changes check logic.