fix: input form value type error (#3399)

This commit is contained in:
Archer
2024-12-15 19:58:50 +08:00
committed by GitHub
parent 3deac290bf
commit c995bccef8
3 changed files with 10 additions and 6 deletions

View File

@@ -41,7 +41,8 @@ const MyNumberInput = (props: Props) => {
? register(name, {
required: props.isRequired,
min: props.min,
max: props.max
max: props.max,
valueAsNumber: true
})
: {})}
/>