We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 822b10b commit f775788Copy full SHA for f775788
src/use/utils.ts
@@ -35,7 +35,7 @@ export function textInputValue(type:string, value:any) {
35
} else if (type === 'time') {
36
return timeInputFormat(value)
37
} else if (type === 'number' || type === 'range') {
38
- return Number(value)
+ return value == null ? '' : Number(value)
39
}
40
return value
41
0 commit comments