cheogram-www

created pr with cheogram-www/fix-decimal-inputs.1 on 2026-11-26T20:04:19Z · by 3c31bc8c
commented on 2026-11-26T20:04:19Z · by 3c31bc8c
Changes are available at https://tangled.org/mrry.band/cheogram-www fix-decimal-inputs
added cheogram-www/fix-decimal-inputs.2 on 2026-11-26T20:05:08Z · by 3c31bc8c
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 -3
checkout specific patchset revision:
ssh pr.pico.sh pull cheogram-www:fix-decimal-inputs [rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh cheogram-www:fix-decimal-inputs
add comment to patch request:
ssh pr.pico.sh comment cheogram-www:fix-decimal-inputs "lgtm!"

Patchset cheogram-www/fix-decimal-inputs.2 on 2026-11-26T20:05:08Z · commit 3e90d86

Set step to any for decimal inputs
Eric Roberts 2026-11-26T20:01:38Z
Otherwise if the value starts off empty or with an integer it will be
treated as having a step of 1 (whole number).
Diff stat
1 file changed, 4 insertions(+)
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 = ({
592592 multiple: ["list-multi", "text-multi"].includes(field.type),
593593 inputMode: field.datatype === "jid" ? "email" : undefined,
594594 pattern: field.regex ?? undefined,
595+ step:
596+ inputType(field) === "number" && isDecimal(field)
597+ ? "any"
598+ : undefined,
595599 min: field.rangeMin ?? undefined,
596600 max: field.rangeMax ?? undefined,
597601 list: datalistId,
Back to top