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

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "opengym-frontend",
"private": true,
"version": "1.1.1",
"version": "1.2.1",
"type": "module",
"scripts": {
"dev": "vite",