parent
785dcb30c3
commit
bb85e11a92
1 changed files with 2 additions and 0 deletions
|
@ -273,6 +273,8 @@ var Zotero_Tabs = new function () {
|
||||||
}
|
}
|
||||||
this._tabs.splice(tabIndex, 1);
|
this._tabs.splice(tabIndex, 1);
|
||||||
document.getElementById(tab.id).remove();
|
document.getElementById(tab.id).remove();
|
||||||
|
// For unknown reason fx102, unlike 60, sometimes doesn't automatically update selected index
|
||||||
|
this.deck.selectedIndex = Array.from(this.deck.children).findIndex(x => x.id == this._selectedID);
|
||||||
if (tab.onClose) {
|
if (tab.onClose) {
|
||||||
tab.onClose();
|
tab.onClose();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue