diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index 6c7908e17..d5f0dde4f 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -294,9 +294,9 @@ const updateCellValue = (protyle: IProtyle, type: TAVCol, cellElements: HTMLElem checked?: boolean, } = {}; if (type === "number") { - oldValue.content = parseFloat(oldValue.content as string); + oldValue.content = parseFloat(item.textContent.trim()); oldValue.isNotEmpty = typeof oldValue.content === "number" && !isNaN(oldValue.content); - inputValue.content = parseFloat(inputValue.content as string); + inputValue.content = parseFloat((avMaskElement.querySelector(".b3-text-field") as HTMLInputElement).value); inputValue.isNotEmpty = typeof inputValue.content === "number" && !isNaN(inputValue.content); } else if (type === "checkbox") { const useElement = item.querySelector("use");