From e70f1f9a8fa42b50aa72305324434936496475ed Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 3 Jul 2024 14:05:32 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/11871 --- app/src/protyle/header/Title.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.ts index 3d56de7ac..c8dffef78 100644 --- a/app/src/protyle/header/Title.ts +++ b/app/src/protyle/header/Title.ts @@ -116,7 +116,7 @@ export class Title { } } else if (event.key === "Enter") { const editElment = getContenteditableElement(protyle.wysiwyg.element.firstElementChild) - if (editElment && editElment.textContent === "") { + if (editElment && editElment.textContent === "" && !protyle.wysiwyg.element.firstElementChild.classList.contains("av")) { // 配合提示文本使用,避免提示文本挤压到第二个块中 focusBlock(protyle.wysiwyg.element.firstElementChild, protyle.wysiwyg.element); } else {