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",