From 70b3406e03e95689f35874eb7f06f44f5e010d8a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 21 Nov 2023 17:31:57 +0800 Subject: [PATCH] :bug: https://ld246.com/article/1700535997206 --- app/src/protyle/render/av/cell.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");