An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/9423
Vanessaaf810b279d6e
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.tsindex 996e9f2639..ce4b839014 100644--- a/app/src/protyle/render/av/action.ts+++ b/app/src/protyle/render/av/action.ts@@ -156,7 +156,7 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEleconst cellElement = hasClosestByClassName(event.target, "av__cell");if (cellElement && !cellElement.parentElement.classList.contains("av__row--header")) {const type = cellElement.parentElement.parentElement.firstElementChild.querySelector(`[data-col-id="${cellElement.getAttribute("data-col-id")}"]`).getAttribute("data-dtype") as TAVCol;- if (type === "updated" || type === "created") {+ if (type === "updated" || type === "created" || (type === "block" && !cellElement.getAttribute("data-detached"))) {selectRow(cellElement.parentElement.querySelector(".av__firstcol"), "toggle");} else {selectRow(cellElement.parentElement.querySelector(".av__firstcol"), "unselect");diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.tsindex 43260a1448..a34dfaf983 100644--- a/app/src/protyle/render/av/cell.ts+++ b/app/src/protyle/render/av/cell.ts@@ -457,19 +457,21 @@ const updateCellValue = (protyle: IProtyle, type: TAVCol, cellElements: HTMLElemif (type === "template") {const colId = cellElements[0].getAttribute("data-col-id");const textElement = avMaskElement.querySelector(".b3-text-field") as HTMLInputElement;- transaction(protyle, [{- action: "updateAttrViewColTemplate",- id: colId,- avID,- data: textElement.value,- type: "template",- }], [{- action: "updateAttrViewColTemplate",- id: colId,- avID,- data: textElement.dataset.template,- type: "template",- }]);+ if (textElement.value !== textElement.dataset.template) {+ transaction(protyle, [{+ action: "updateAttrViewColTemplate",+ id: colId,+ avID,+ data: textElement.value,+ type: "template",+ }], [{+ action: "updateAttrViewColTemplate",+ id: colId,+ avID,+ data: textElement.dataset.template,+ type: "template",+ }]);+ }} else {cellElements.forEach((item) => {const rowElement = hasClosestByClassName(item, "av__row");