openstreetmap-website icon indicating copy to clipboard operation
openstreetmap-website copied to clipboard

Notes should be saved temporarily upon browser BACK

Open jidanni opened this issue 2 years ago • 5 comments

Here we are typing in a long note. Screenshot_20230504-201519.jpg

Okay. Now we are finished typing. And it is time to tap the submit button.

But the submit button is covered up by the keyboard.

So we do the standard procedure to get the keyboard off of what is underneath it. We push the cell phone's BACK button.

Alas, our luck has run out. This time the back button really does send us back, not just getting the keyboard out of the way.

And our painstakingly typed in note.. well you can guess what happened to it.

jidanni avatar May 04 '23 12:05 jidanni

A second try. And this time we cautiously scroll down the page and indeed revealed the submit button, without needing to move the keyboard out of the way. This tip for future readers.

jidanni avatar May 04 '23 12:05 jidanni

Moral of the story: the website should ask, "Are you really sure you want to throw away your painstakingly typed note?"

jidanni avatar May 04 '23 12:05 jidanni

Android (12 at least, standard Google keyboard) multiplexes "put the keyboard away" with "back" (if gestures not in use).

If it is a bug, surely it should be logged with Google?

SomeoneElseOSM avatar May 04 '23 12:05 SomeoneElseOSM

The comment doesn't persist when pressing "back" is treated as a single-page navigation (implemented in router.js). Otherwise going forward restores the comment.

AntonKhorev avatar May 04 '23 15:05 AntonKhorev

I was using Android 8.

I also find that sometimes one back makes the keyboard go down and a second back really makes our note draft go away. And then a forward just brings us to an empty fresh note.

So still the page has an opportunity to ask us if we really want to get rid of our note draft or not. So the page perhaps ought to be enhanced by adding this safety feature.

jidanni avatar May 04 '23 17:05 jidanni