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 b66d7c0c..a63cf8c6 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: 'decimal' + } } }} /> @@ -266,8 +269,12 @@ export const SessionLogsForm = ({ dayId, routineId, selectedDate }: SessionLogsF {formik.values.logs[index].weightUnit?.name} - } - } + }, + htmlInput: { + inputMode: 'decimal' + } + + } }} />