🐛 block 不在第一行时删除

This commit is contained in:
Vanessa 2023-10-18 23:57:25 +08:00
parent 5458d3bc5e
commit 0d704a549f

View file

@ -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({