mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-08 01:38:50 +01:00
This commit is contained in:
parent
8288d484d9
commit
260af4bba0
1 changed files with 3 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ const focusStack = (backStack: IBackStack) => {
|
|||
protyle.wysiwyg.renderCustom(response.data.ial);
|
||||
});
|
||||
}
|
||||
|
||||
const exitFocusElement = protyle.breadcrumb.element.parentElement.querySelector('[data-type="exit-focus"]');
|
||||
if (backStack.zoomId) {
|
||||
if (backStack.zoomId !== protyle.block.id) {
|
||||
fetchPost("/api/block/checkBlockExist", {id: backStack.id}, existResponse => {
|
||||
|
|
@ -71,6 +71,7 @@ const focusStack = (backStack: IBackStack) => {
|
|||
} else {
|
||||
protyle.contentElement.scrollTop = backStack.scrollTop;
|
||||
}
|
||||
exitFocusElement.classList.remove("fn__none");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -108,6 +109,7 @@ const focusStack = (backStack: IBackStack) => {
|
|||
item.eventBus.emit("switch-protyle", {protyle});
|
||||
item.eventBus.emit("loaded-protyle-static", {protyle});
|
||||
});
|
||||
exitFocusElement.classList.add("fn__none");
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue