Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/15509

Vanessa334e80f8d566
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts
index af13d6a432..69c792eb5e 100644
--- a/app/src/protyle/render/av/render.ts
+++ b/app/src/protyle/render/av/render.ts
@@ -726,7 +726,7 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
}
if (operation.srcs.length === 1) {
const popCellElement = item.querySelector(`.av__body${groupQuery} [data-id="${operation.srcs[0].itemID}"] .av__cell[data-dtype="block"]`) as HTMLElement;
- if (popCellElement) {
+ if (popCellElement && popCellElement.getAttribute("data-detached") === "true") {
popTextCell(protyle, [popCellElement], "block");
}
}