From 5d8e547942deac50d22d0799cbf3a3d0af63cecd Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 29 May 2024 22:19:21 +0800 Subject: [PATCH] :bug: gutter --- app/src/protyle/gutter/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts index 2bb2badb6..4c3093b47 100644 --- a/app/src/protyle/gutter/index.ts +++ b/app/src/protyle/gutter/index.ts @@ -2012,8 +2012,7 @@ export class Gutter { public render(protyle: IProtyle, element: Element, wysiwyg: HTMLElement, target?: Element) { // https://github.com/siyuan-note/siyuan/issues/4659 - const titleElement = wysiwyg.parentElement.querySelector(".protyle-title__input"); - if (titleElement && titleElement.getAttribute("data-render") !== "true") { + if (protyle.title && protyle.title.element.getAttribute("data-render") !== "true") { return; } // 防止划选时触碰图标导致 hl 无法移除