Avoid content loss when immediately leaving item note in context pane
Fixes #3532
This commit is contained in:
parent
32ba987c28
commit
3cb12a2ad3
1 changed files with 2 additions and 0 deletions
|
@ -818,6 +818,8 @@ var ZoteroContextPane = new function () {
|
|||
editor.item = item;
|
||||
editor.parentItem = null;
|
||||
editor.returnHandler = () => {
|
||||
// Immediately save note content before vbox with note-editor iframe is destroyed below
|
||||
editor.saveSync();
|
||||
_panesDeck.setAttribute('selectedIndex', 1);
|
||||
_notesPaneDeck.selectedPanel.setAttribute('selectedIndex', 0);
|
||||
vbox.remove();
|
||||
|
|
Loading…
Add table
Reference in a new issue