Vanessa 2025-04-19 10:00:10 +08:00
parent e47b8efc2f
commit a82693f90b

View file

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