From 50d5ebea24acc0e1e87097e73c56fb2cf0a24f1d Mon Sep 17 00:00:00 2001 From: Mehak-mahajan Date: Thu, 2 Jul 2026 21:00:18 +0530 Subject: [PATCH 1/2] fix: add numeric keypad hints for weight and repetitions fields on mobile --- .../Routines/widgets/forms/SessionLogsForm.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/Routines/widgets/forms/SessionLogsForm.tsx b/src/components/Routines/widgets/forms/SessionLogsForm.tsx index b66d7c0c..554fb9ae 100644 --- a/src/components/Routines/widgets/forms/SessionLogsForm.tsx +++ b/src/components/Routines/widgets/forms/SessionLogsForm.tsx @@ -248,7 +248,10 @@ export const SessionLogsForm = ({ dayId, routineId, selectedDate }: SessionLogsF : null} - } + }, + htmlInput:{ + inputMode: 'numeric' + } } }} /> @@ -266,8 +269,12 @@ export const SessionLogsForm = ({ dayId, routineId, selectedDate }: SessionLogsF {formik.values.logs[index].weightUnit?.name} - } - } + }, + htmlInput: { + inputMode: 'decimal' + } + + } }} /> From 8deac956e52e5766a50c6e55c40508ad6ae5506c Mon Sep 17 00:00:00 2001 From: Mehak-mahajan Date: Fri, 3 Jul 2026 20:44:25 +0530 Subject: [PATCH 2/2] fix: add decimal inputMode to all numeric input fields for mobile keyboards --- .../Nutrition/screens/BmiCalculator.tsx | 23 ++++++++++--------- .../widgets/forms/SessionLogsForm.tsx | 2 +- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/components/Nutrition/screens/BmiCalculator.tsx b/src/components/Nutrition/screens/BmiCalculator.tsx index 594ee336..7b142f62 100644 --- a/src/components/Nutrition/screens/BmiCalculator.tsx +++ b/src/components/Nutrition/screens/BmiCalculator.tsx @@ -98,22 +98,23 @@ export const BmiCalculator = () => { - {t('cm')} } - }} - type="number" - value={height ?? ""} - onChange={(e) => setHeight(parseFloat(e.target.value))} - /> - + {t('cm')} }, + htmlInput: { inputMode: 'decimal' } + }} + type="number" + value={height ?? ""} + onChange={(e) => setHeight(parseFloat(e.target.value))} +/> {t('server.kg')} } + htmlInput: { inputMode: 'decimal' } }} fullWidth type="number" diff --git a/src/components/Routines/widgets/forms/SessionLogsForm.tsx b/src/components/Routines/widgets/forms/SessionLogsForm.tsx index 554fb9ae..a63cf8c6 100644 --- a/src/components/Routines/widgets/forms/SessionLogsForm.tsx +++ b/src/components/Routines/widgets/forms/SessionLogsForm.tsx @@ -250,7 +250,7 @@ export const SessionLogsForm = ({ dayId, routineId, selectedDate }: SessionLogsF }, htmlInput:{ - inputMode: 'numeric' + inputMode: 'decimal' } } }}