From 49d9643eb41f6d54ea6d69003b5b95e1e7876496 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 27 Dec 2024 21:54:22 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13638 --- app/src/protyle/render/av/action.ts | 4 +++- app/src/protyle/util/editorCommonEvent.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index a1f7270a5..16d01ae58 100644 --- a/app/src/protyle/render/av/action.ts +++ b/app/src/protyle/render/av/action.ts @@ -568,7 +568,9 @@ ${window.siyuan.languages.insertRowAfter.replace("${x}", ` { } else if (targetElement.classList.contains("av__row")) { // 拖拽到属性视图内 const blockElement = hasClosestBlock(targetElement); - if (blockElement && sourceElements.length > 0) { + if (blockElement) { let previousID = ""; if (targetClass.includes("dragover__bottom")) { previousID = targetElement.getAttribute("data-id") || "";