fix field form unit
This commit is contained in:
parent
9ab4242422
commit
713ac3e6f6
|
|
@ -157,6 +157,7 @@ export const FieldNumUnit: FC<{
|
|||
value={typeof disabled === "string" ? disabled : local.val}
|
||||
onChange={(e) => {
|
||||
local.val = parseInt(e.currentTarget.value) || 0;
|
||||
local.render();
|
||||
update(local.val + local.unit);
|
||||
}}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue