mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🚨
This commit is contained in:
@@ -681,7 +681,7 @@ export class Wnd {
|
||||
}
|
||||
if (item.headElement) {
|
||||
if (item.headElement.classList.contains("item--focus")) {
|
||||
let latestHeadElement: HTMLElement
|
||||
let latestHeadElement: HTMLElement;
|
||||
Array.from(item.headElement.parentElement.children).forEach((headItem: HTMLElement) => {
|
||||
if (!headItem.isSameNode(item.headElement)) {
|
||||
if (!latestHeadElement) {
|
||||
@@ -690,7 +690,7 @@ export class Wnd {
|
||||
latestHeadElement = headItem;
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
if (latestHeadElement && !closeAll) {
|
||||
this.switchTab(latestHeadElement, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user