Skip to content

Commit

Permalink
fix(core): db property number cell should be cast to number (#8937)
Browse files Browse the repository at this point in the history
fix BS-1962
  • Loading branch information
pengx17 committed Dec 4, 2024
1 parent e4f94c7 commit f4f005b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}}
/>
Expand Down

0 comments on commit f4f005b

Please sign in to comment.