fallback to 0

This commit is contained in:
Gani Georgiev
2026-04-19 15:36:38 +03:00
parent ba554b8470
commit c3a53cb183
4 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
## v0.37.1
- Minor UI bugfixes:
- Fixed `number` field min/max input value normalization ([#7646](https://github.com/pocketbase/pocketbase/issues/7646)).
- Fixed `number` field input values normalization ([#7646](https://github.com/pocketbase/pocketbase/issues/7646)).
- Allow opening collections in new tab on middle click.
- Show collection name in the page title on initial load.

View File

File diff suppressed because one or more lines are too long

2
ui/dist/index.html vendored
View File

@@ -13,7 +13,7 @@
<!-- prism -->
<script src="./libs/prism/prism.js" data-manual></script>
<script type="module" crossorigin src="./assets/index-BMswcwK4.js"></script>
<script type="module" crossorigin src="./assets/index-CswPTzfS.js"></script>
<link rel="modulepreload" crossorigin href="./assets/pocketbase.es-B_4DUNUU.js">
<link rel="stylesheet" crossorigin href="./assets/index-BLIFQr7L.css">
</head>

View File

@@ -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),
}),
),