This commit is contained in:
Vanessa 2022-06-23 15:45:55 +08:00
parent cd80bb8aac
commit 964cabe3f0

View file

@ -479,13 +479,19 @@ export class Wnd {
} else { } else {
this.remove(); this.remove();
} }
getAllModels().editor.forEach(item => { // 关闭分屏页签后光标消失
if (!item.element.classList.contains("fn__none")) { const editors = getAllModels().editor;
setPanelFocus(item.parent.parent.headersElement.parentElement); if (editors.length === 0) {
updatePanelByEditor(item.editor.protyle, true, true); updatePanelByEditor();
return; } else {
} editors.forEach(item => {
}); if (!item.element.classList.contains("fn__none")) {
setPanelFocus(item.parent.parent.headersElement.parentElement);
updatePanelByEditor(item.editor.protyle, true, true);
return;
}
});
}
return; return;
} }
if (item.headElement) { if (item.headElement) {