mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-25 14:30:24 +01:00
fallback to 0
This commit is contained in:
1 parent
ba554b8470
commit
c3a53cb183
4 files changed
+4
-4
No files matched your search
@@ -24,7 +24,7 @@ export function input(props) {
|
||||
required: () => props.field.required,
|
||||
min: () => props.field.min,
|
||||
max: () => props.field.max,
|
||||
value: () => props.record[props.field.name] || "",
|
||||
value: () => props.record[props.field.name] || 0,
|
||||
oninput: (e) => props.record[props.field.name] = Number(e.target.value),
|
||||
}),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user