From 0d704a549f43e127ce0b8cb53dfa2be7f64d1fbd Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 18 Oct 2023 23:57:25 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20block=20=E4=B8=8D=E5=9C=A8=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E8=A1=8C=E6=97=B6=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/render/av/action.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index fce18dbd3..92b8e87d1 100644 --- a/app/src/protyle/render/av/action.ts +++ b/app/src/protyle/render/av/action.ts @@ -255,7 +255,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi const rowElements = blockElement.querySelectorAll(".av__row--select:not(.av__row--header)"); rowElements.forEach(item => { rowIds.push(item.getAttribute("data-id")); - blockIds.push(item.querySelector(".av__cell").getAttribute("data-block-id")); + blockIds.push(item.querySelector(".av__cell[data-block-id]").getAttribute("data-block-id")); }); updateHeader(rowElement); menu.addItem({