fix field form unit

This commit is contained in:
Rizky 2024-01-24 18:47:51 +07:00
parent 9ab4242422
commit 713ac3e6f6
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}}
/>