This commit is contained in:
Vanessa 2022-10-19 18:37:33 +08:00
parent 0faf73d2c1
commit 4cd1bd68e5
4 changed files with 4 additions and 7 deletions

View file

@ -353,7 +353,6 @@ export class Wnd {
}
}
});
const initData = currentTab.headElement.getAttribute("data-initdata");
if (initData) {
const json = JSON.parse(initData);
@ -443,11 +442,6 @@ export class Wnd {
} else {
this.headersElement.children[oldFocusIndex].after(tab.headElement);
}
setTimeout(() => {
tab.headElement.removeAttribute("style");
}, Constants.TIMEOUT_TRANSITION);
tab.headElement.querySelector(".item__close").addEventListener("click", (event) => {
if (tab.headElement.classList.contains("item--pin")) {
tab.unpin();
@ -505,6 +499,7 @@ export class Wnd {
}
} else {
this.switchTab(item, true);
this.showHeading();
window.siyuan.menus.menu.remove();
}
event.preventDefault();