From ef8561cf18217ef2816b937ed373631f34bb93e6 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 9 Oct 2024 17:37:06 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/12230 --- app/src/protyle/util/selection.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/protyle/util/selection.ts b/app/src/protyle/util/selection.ts index 09a768b36..50473ae69 100644 --- a/app/src/protyle/util/selection.ts +++ b/app/src/protyle/util/selection.ts @@ -538,6 +538,7 @@ export const focusBlock = (element: Element, parentElement?: HTMLElement, toStar range.collapse(true); setRange = true; } else if (type === "NodeAttributeView") { + /// #if !MOBILE const cursorElement = element.querySelector(".av__cursor"); if (cursorElement) { range.setStart(cursorElement.firstChild, 0); @@ -545,6 +546,9 @@ export const focusBlock = (element: Element, parentElement?: HTMLElement, toStar } else { return false; } + /// #else + return false; + /// #endif } if (setRange) { focusByRange(range);