From a82693f90be2fc0be754e16f0f86fac744b52815 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 19 Apr 2025 10:00:10 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14642 --- app/src/protyle/wysiwyg/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 21e6a53f8..b11c1c056 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -2334,7 +2334,9 @@ export class WYSIWYG { /// #if MOBILE // https://github.com/siyuan-note/siyuan/issues/10513 const virtualRefElement = hasClosestByAttribute(event.target, "data-type", "virtual-block-ref"); - if (virtualRefElement) { + if (virtualRefElement && range.toString() === "") { + event.stopPropagation(); + event.preventDefault(); const blockElement = hasClosestBlock(virtualRefElement); if (blockElement) { fetchPost("/api/block/getBlockDefIDsByRefText", {