From 68b2f1fb9e561a1f03b9380f323ac956e05d35f1 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 18 Dec 2023 12:53:52 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9892 --- app/src/protyle/render/av/cell.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index a4ab74121..20748a2cd 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -69,6 +69,9 @@ const genCellValueByElement = (colType: TAVCol, cellElement: HTMLElement) => { } }; } + if (colType === "block") { + cellValue.isDetached = cellElement.dataset.detached === "true"; + } return cellValue; }; @@ -411,7 +414,8 @@ const updateCellValueByInput = (protyle: IProtyle, type: TAVCol, cellElements: H keyID: colId, rowID, data: { - [type]: inputValue + [type]: inputValue, + isDetached: true, } }, { action: "doUpdateUpdated", @@ -425,7 +429,8 @@ const updateCellValueByInput = (protyle: IProtyle, type: TAVCol, cellElements: H keyID: colId, rowID, data: { - [type]: oldValue + [type]: oldValue, + isDetached: true, } }, { action: "doUpdateUpdated",