Fix context pane leak keeping reader and note-editor iframes in memory

Fixes #4447
This commit is contained in:
Martynas Bagdonas 2024-08-01 15:26:49 +03:00
parent 687399d9b0
commit 61d6ef8d3d

View file

@ -136,7 +136,9 @@
}
_handleTabClose(action, type, ids) {
this._removeItemContext(ids[0]);
for (let id of ids) {
this._removeItemContext(id);
}
if (Zotero_Tabs.deck.children.length == 1) {
Array.from(this._notesPaneDeck.children).forEach(x => x.notesList.expanded = false);
}