Accept comma as decimal separator in numeric inputs

iOS decimal keyboards in many locales only offer a comma; type=number
inputs report an empty value for it, snapping the field to 0. Numeric
fields (weight, speed, etc.) are now text inputs with inputMode=decimal
backed by a shared NumField component that normalizes ',' to '.' and
keeps partial input like "33," alive while typing.

Fixes #13
This commit is contained in:
Duarte Santos committed 2026-07-22 00:03:48 +02:00
1 parent c05b0756ec
commit 30fd3a84a1
5 files changed
+43 -10

No files matched your search

+6
View File
@@ -1,5 +1,11 @@
# Changelog
## v1.2.1 — 2026-07-22
- ⌨️ Weight and other numeric fields now accept a comma as decimal separator ("33,5") — iOS
decimal keyboards in many locales only offer a comma, which previously reset the field to 0.
Partial input like "33," no longer snaps to 0 while typing. (#13)
## v1.2.0 — 2026-07-21
Localization — the whole app now speaks your language. (#7)