Zotero 5.0 Bug: all content of note deleted when backspace + impossible to do Ctrl + Z
Sometimes when I paste a text into a note and press backspace to delete the last characters pasted, the whole content of the note disappear. This happens even thought the whole text isn't selected.
Some debug steps:
- After pasting, I move the cursor somewhere at the beginning of the note and then set it back to the end of the note and press backspace. The whole note is still deleted.
- The source code is normal.
- This happens on a new (empty) note and on existing note (which already had content before the paste)
This bug is even made worst by another unrelated bug : sometimes the Ctrl + Z doesn't work and the whole note is lost.
Some debug steps:
- After pasting, I move the cursor somewhere at the beginning of the note and then set it back to the end of the note and press backspace. The whole note is still deleted.
- The source code is normal.
- This happens on a new (empty) note and on existing note (which already had content before the paste)
This bug is even made worst by another unrelated bug : sometimes the Ctrl + Z doesn't work and the whole note is lost.
FWIW I use notes extensively and do much cutting and pasting and moving of text. I cannot reproduce this with Z5-beta standalone on a Mac and Cmd-Z always works for me. I have the freedom to move the cursor throughout a note, perform various cuts and pastes, backspace to delete text at the end of a note (or only the final character). Whether the note is opened in a Zotero tab or in a separate window -- both are working fine. This must be related to something OS-specific.
Today, I tried to reproduce but failed on 5.0-beta.202+ddc9989.
The error is inconsistent.
Anyway I have met the error from time to time.
I promise to make Debug ID when it occurs again.
The error is also inconsistent but I had it several times.
I am not sure, but I think the Ctrl + Z bug happens when Zotero has just sync (somehow the tracking of the changes would be lost by the sync).
Ctrl+Z didn't work so the content was lost.
edit:
At first, I thought it was related to clicking outside the text area (similar to what happens when editing an item on ORCID) but I know that this occurs when I stay within the lines and I tried to reproduce this by clicking outside and no loss resulted.
Please do something!
If you restore from the last automatic backup, are you able to reproduce it reliably in a given note? If so, can you first right-click, choose "Source code", and email the HTML to support@zotero.org with a link to this thread?
As you ask, I restored from last backup and reproduced all the steps above (in the same note) but that time, I didn't get the bug. I checked the source code, nothing is anormal, just a bunch of "p" tags and some links.
Another time, instead of the whole content of the note being delete, Zotero bugs: the note is still there (with all its content) but all the items in the middle pane disappear and there is a message instead (I don't remember it but it's like "something is wrong, please restart").
The bug also happens when I create a note from scratch and when I add "by hand" some content (so no weird HTML content being paste)