Page MenuHomePhabricator

Alert the user when navigating away with unsaved changes
Open, MediumPublic

Description

background

When a user attempts to navigate away from an unsaved form, they will lose anything in progress.

user story

Given that a user has selected anything in the form or added characters to a text field, when they attempt to navigate from the page, then a browser dialog should appear, and they should be able to continue (and lose their edits) or go back to the form to publish

requirements

When a user navigates away from a page, a dialog should appear

  • by pressing "continue" their edits are discarded
  • by pressing "go back" they should see the form

Details

TitleReferenceAuthorSource BranchDest Branch
Check for form submit before firing beforeunloadrepos/commtech/wishlist-intake!75samtarT365161-bugfixmain
Alert the user when navigating away with unsaved changesrepos/commtech/wishlist-intake!74samtarT365161main
Customize query in GitLab

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
JWheeler-WMF updated the task description. (Show Details)

This is (sometimes) showing the prompt when submitting the form — reworking