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", {