From 939ca5423110cd5240669039316a11ae8ed86d31 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 8 Feb 2026 21:21:35 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/15128 --- app/src/protyle/render/av/cell.ts | 46 +++++++++++++++---------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index 7d6eed724..e538dd755 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -877,31 +877,29 @@ export const updateCellsValue = async (protyle: IProtyle, nodeElement: HTMLEleme } cellValue.date.formattedContent = oldValue.date.formattedContent; } - if (objEquals(cellValue, oldValue)) { - break; - } + if (!objEquals(cellValue, oldValue)) { + doOperations.push({ + action: "updateAttrViewCell", + id: cellId, + avID, + keyID: colId, + rowID, + data: cellValue + }); - doOperations.push({ - action: "updateAttrViewCell", - id: cellId, - avID, - keyID: colId, - rowID, - data: cellValue - }); - - undoOperations.push({ - action: "updateAttrViewCell", - id: cellId, - avID, - keyID: colId, - rowID, - data: oldValue - }); - if (isCustomAttr) { - item.innerHTML = genAVValueHTML(cellValue); - } else { - updateAttrViewCellAnimation(item, cellValue); + undoOperations.push({ + action: "updateAttrViewCell", + id: cellId, + avID, + keyID: colId, + rowID, + data: oldValue + }); + if (isCustomAttr) { + item.innerHTML = genAVValueHTML(cellValue); + } else { + updateAttrViewCellAnimation(item, cellValue); + } } } if (getOperations) {