Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore in-progress comments after restoring a closed browser tab #5624

Open
andrewharvey opened this issue Feb 6, 2025 · 3 comments
Open

Comments

@andrewharvey
Copy link
Contributor

If a user is writing a changeset comment on a changeset page https://www.openstreetmap.org/changeset/:id: and they accidentally close the browser tab, the in-progress comment is lost upon restoring the tab.

It would be preferable for the in-progress comment to be restored in the input text area upon restoring the tab.

For example this happens here in GitHub, if you're entering a comment, writing an issue description and close the tab, then restore that tab, the in-progress text is restored.

In my case this happens because in Vim Ctrl+W deletes the last word, but in Chrome it closes the tab and sometimes they can be mixed up.

An alternative would be to popup that their message will be lost and if they should continue, but I see this as a worse UX.

@tomhughes
Copy link
Member

What browser are you using that doesn't restore forms on page restore these days?

@tomhughes
Copy link
Member

This is basically another version of #4898 I think - are you using "better-osm-org" by any chance?

@andrewharvey
Copy link
Contributor Author

Sorry I did try to search for prior tickets.

I'm running Google Chrome, latest version, on Debian but from Google's repository, with no extensions enabled for openstreetmap.org, and yes it doesn't seem to restore by itself. GitHub does, OSM doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants