An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: ctrl+D 后点击添加行
Vanessac3d28a35fa4a
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.tsindex 0b006d4abc..f5b602906f 100644--- a/app/src/protyle/render/av/render.ts+++ b/app/src/protyle/render/av/render.ts@@ -329,9 +329,10 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation, isUndo: bool} else {Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${avId}"]`)).forEach((item: HTMLElement) => {item.removeAttribute("data-render");+ const isCurrent = item.querySelector(".av__pulse"); // ctrl+D 后点击添加行avRender(item, protyle, () => {// https://github.com/siyuan-note/siyuan/issues/9599- if (!isUndo && operation.action === "insertAttrViewBlock" && operation.isDetached) {+ if (!isUndo && operation.action === "insertAttrViewBlock" && operation.isDetached && isCurrent) {popTextCell(protyle, [item.querySelector(`.av__row[data-id="${operation.srcIDs[0]}"] .av__cell[data-detached="true"]`)], "block");}}, ["addAttrViewView", "duplicateAttrViewView"].includes(operation.action) ? operation.id :