From 69ece9ab180b5176ef47d8005d2a0e8a2dff03b2 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 21 Jul 2022 22:58:06 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5487 --- app/src/editor/util.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/editor/util.ts b/app/src/editor/util.ts index 725da037c..3c12cfe91 100644 --- a/app/src/editor/util.ts +++ b/app/src/editor/util.ts @@ -331,7 +331,7 @@ export const isCurrentEditor = (blockId: string) => { if (activeElement) { const tab = getInstanceById(activeElement.getAttribute("data-id")); if (tab instanceof Tab && tab.model instanceof Editor) { - if (tab.model.editor.protyle.block.rootID !== blockId) { + if (tab.model.editor.protyle.block.rootID !== blockId && tab.model.editor.protyle.block.id !== blockId) { return false; } } @@ -426,6 +426,7 @@ export const updateBacklinkGraph = (models: IModels, protyle: IProtyle) => { mk: item.inputsElement[1].value, }, response => { if (!isCurrentEditor(blockId)) { + item.element.querySelector('.block__icon[data-type="refresh"] svg').classList.remove("fn__rotate"); return; } item.blockId = blockId;