فهرست منبع

:art: fix https://github.com/siyuan-note/siyuan/issues/11871

Vanessa 1 سال پیش
والد
کامیت
e70f1f9a8f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/src/protyle/header/Title.ts

+ 1 - 1
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 {