fix(core): db property number cell should be cast to number (#8937)

fix BS-1962
This commit is contained in:
pengx17
2024-12-04 07:49:55 +00:00
parent e4f94c7e3f
commit f4f005bffb

View File

@@ -14,7 +14,11 @@ export const NumberCell = ({
<NumberValue
value={value}
onChange={v => {
dataSource.cellValueChange(rowId, cell.property.id, v);
const value = Number(v);
if (isNaN(value)) {
return;
}
dataSource.cellValueChange(rowId, cell.property.id, value);
onChange?.(v);
}}
/>