noyainrain / listling

Web app to make and edit lists collaboratively.
https://listling.org/
GNU Affero General Public License v3.0
34 stars 8 forks source link

Item entry discarded without confirmation #114

Open dnnr opened 2 years ago

dnnr commented 2 years ago

Observation: When adding a new item, after having typed some content into the form, pressing the escape key does not prompt for any confirmation. Instead, everything entered is lost.

Expected behavior: Do not loose entered data without a confirmation prompt. Alternatively, keep the contents and show them when opening the new item form again. Or just don't react on escape key presses.

noyainrain commented 2 years ago

Thanks for the bug report! :slightly_smiling_face: Indeed, simply closing a form should not lead to data loss. I agree with the two possible solutions you point out (either restore the data later or ask for user confirmation).

When reproducing the issue, I noticed two things: Data is currently restored when editing the list itself (but maybe consistently using a prompt is the better solution). The described problem also occurs when navigating away from the list.