URGENT: If user clicks 'refresh' in validation error state, the page refreshes without warning leading to data loss. #10492
Labels
status: needs-triage
Possible bug which hasn't been reproduced yet
Describe the Bug
I'm marking this as urgent, as this is a very poor AX and will lead to accidental data loss.
If an author populates fields and refreshes their browser, they correctly get this browser warning:
However, if an author tries to save a page and receives validation errors to get the following, then they refresh the browser, the browser warning modal no longer pops up.
Proposed solution:
Instead of using browser-level modals, there should be a built in modal (much like the logged out one) that really gets the attention of the author to notify them that refreshing or leaving the current state will end in data loss.
Link to the code that reproduces this issue
Don't need one. This is platform-wide on all builds.
Reproduction Steps
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
The text was updated successfully, but these errors were encountered: