From 517c784b6354122d44cbe0519aeef8bfc3710d5f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 3 Jun 2024 11:43:37 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/11627 --- app/src/protyle/util/editorCommonEvent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index 0032beb5f..0b4d2f41d 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -890,7 +890,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { // 行内拖拽 const doOperations: IOperation[] = []; const undoOperations: IOperation[] = []; - const undoPreviousId = blockElement.querySelector(`[data-id="${selectedIds[0]}"]`).previousElementSibling.getAttribute("data-id") || ""; + const undoPreviousId = blockElement.querySelector(`.av__row[data-id="${selectedIds[0]}"]`).previousElementSibling.getAttribute("data-id") || ""; selectedIds.reverse().forEach(item => { if (previousID !== item && undoPreviousId !== previousID) { doOperations.push({