mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 04:48:48 +01:00
This commit is contained in:
parent
e47b8efc2f
commit
a82693f90b
1 changed files with 3 additions and 1 deletions
|
|
@ -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", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue