cheogram-www
created pr with
cheogram-www/fix-decimal-inputs.1
commented
Changes are available at https://tangled.org/mrry.band/cheogram-www fix-decimal-inputs
added cheogram-www/fix-decimal-inputs.2
1: c9e1136 ! 1: 3e90d86 Set step to any for decimal inputs
cmds
checkout latest patchset:
ssh pr.pico.sh pull cheogram-www:fix-decimal-inputs | git am -3checkout specific patchset revision:
ssh pr.pico.sh pull cheogram-www:fix-decimal-inputs [rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh cheogram-www:fix-decimal-inputsadd comment to patch request:
ssh pr.pico.sh comment cheogram-www:fix-decimal-inputs "lgtm!"
Patchset
cheogram-www/fix-decimal-inputs.2
Set step to any for decimal inputs
Eric Roberts
2026-11-26T20:01:38ZOtherwise if the value starts off empty or with an integer it will be treated as having a step of 1 (whole number).
Semantic diff summary
0 added,
0 modified,
0 signature changed,
0 removed
across 1 analyzed file
+4
-0
src/components/Form.tsx
#
| ... | ... | @@ -592,6 +592,10 @@ const FormField = ({ | |
| 592 | 592 | multiple: ["list-multi", "text-multi"].includes(field.type), | |
| 593 | 593 | inputMode: field.datatype === "jid" ? "email" : undefined, | |
| 594 | 594 | pattern: field.regex ?? undefined, | |
| 595 | + | step: | |
| 596 | + | inputType(field) === "number" && isDecimal(field) | |
| 597 | + | ? "any" | |
| 598 | + | : undefined, | |
| 595 | 599 | min: field.rangeMin ?? undefined, | |
| 596 | 600 | max: field.rangeMax ?? undefined, | |
| 597 | 601 | list: datalistId, |