Skip to content

Commit 70b3406

Browse files
committed
1 parent c664dcc commit 70b3406

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/protyle/render/av/cell.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ const updateCellValue = (protyle: IProtyle, type: TAVCol, cellElements: HTMLElem
294294
checked?: boolean,
295295
} = {};
296296
if (type === "number") {
297-
oldValue.content = parseFloat(oldValue.content as string);
297+
oldValue.content = parseFloat(item.textContent.trim());
298298
oldValue.isNotEmpty = typeof oldValue.content === "number" && !isNaN(oldValue.content);
299-
inputValue.content = parseFloat(inputValue.content as string);
299+
inputValue.content = parseFloat((avMaskElement.querySelector(".b3-text-field") as HTMLInputElement).value);
300300
inputValue.isNotEmpty = typeof inputValue.content === "number" && !isNaN(inputValue.content);
301301
} else if (type === "checkbox") {
302302
const useElement = item.querySelector("use");

0 commit comments

Comments
 (0)