osu-web icon indicating copy to clipboard operation
osu-web copied to clipboard

Add confirmation alert when leaving page that has unsaved text

Open Hiviexd opened this issue 2 years ago • 2 comments

it's not uncommon for people to lose their progress on a mod that's thousands of letters long simply by accidentally refreshing/opening a new link within that tab, and it can get extremely infuriating at times. here's a recreation of such scenario.

I propose to add an alert that warns you about those pending changes before leaving the page, that would be an extremely appreciated ux improvement. image

Hiviexd avatar Mar 08 '22 09:03 Hiviexd

Very weird that the content isn't restored on returning to the page, but having a confirmation is a good first step. Bumping up to highest priority as this is a pretty horrible UX oversight.

peppy avatar Mar 09 '22 09:03 peppy

Forum posts have a thing that saves to localstorage while composing; sounds like this could use the same thing

notbakaneko avatar Mar 09 '22 12:03 notbakaneko