From a6a65f567a0be5539e910374bf3709360d9135b4 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 8 Jun 2022 10:30:27 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5127 2 --- app/src/layout/dock/Outline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts index 6070b8a71..64b02acc2 100644 --- a/app/src/layout/dock/Outline.ts +++ b/app/src/layout/dock/Outline.ts @@ -95,7 +95,7 @@ export class Outline extends Model { click: (element: HTMLElement) => { const models = getAllModels(); models.editor.find(item => { - if (this.blockId === item.editor.protyle.block.rootID) { + if (this.blockId === item.editor.protyle.block.rootID && !item.element.classList.contains("fn__none")) { const id = element.getAttribute("data-node-id"); const targetElement = item.editor.protyle.wysiwyg.element.querySelector(`[data-node-id="${id}"]`); if (targetElement) {