mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
💄 页签下拉选择没有定位 https://github.com/siyuan-note/siyuan/issues/6264
This commit is contained in:
parent
0faf73d2c1
commit
4cd1bd68e5
4 changed files with 4 additions and 7 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue