mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
17a96ee1b1
commit
afa74ebb4b
1 changed files with 2 additions and 3 deletions
|
@ -239,9 +239,8 @@ const getActiveEditor = (wndActive = true) => {
|
|||
let headerElement = item.protyle.model?.parent.headElement;
|
||||
if (!headerElement && item.protyle.element.getBoundingClientRect().height > 0) {
|
||||
const tabBodyElement = item.protyle.element.closest(".fn__flex-1[data-id]");
|
||||
const tabId = tabBodyElement.getAttribute("data-id");
|
||||
if (tabBodyElement.classList.contains("fn__flex-1") && tabId) {
|
||||
headerElement = document.querySelector(`.layout-tab-bar .item[data-id="${tabId}"]`);
|
||||
if (tabBodyElement) {
|
||||
headerElement = document.querySelector(`.layout-tab-bar .item[data-id="${tabBodyElement.getAttribute("data-id")}"]`);
|
||||
}
|
||||
}
|
||||
if (headerElement) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue