Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions src/components/Nutrition/screens/BmiCalculator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,23 @@ export const BmiCalculator = () => {
<Stack spacing={2}>
<Grid container spacing={2}>
<Grid size={{ xs: 12, sm: 6 }}>
<TextField
label={t('height')}
fullWidth
slotProps={{
input: { endAdornment: <Typography>{t('cm')}</Typography> }
}}
type="number"
value={height ?? ""}
onChange={(e) => setHeight(parseFloat(e.target.value))}
/>
</Grid>
<TextField
label={t('height')}
fullWidth
slotProps={{
input: { endAdornment: <Typography>{t('cm')}</Typography> },
htmlInput: { inputMode: 'decimal' }
}}
type="number"
value={height ?? ""}
onChange={(e) => setHeight(parseFloat(e.target.value))}
/></Grid>
<Grid size={{ xs: 12, sm: 6 }}>
<TextField
label={t('weight')}
slotProps={{
input: { endAdornment: <Typography>{t('server.kg')}</Typography> }
htmlInput: { inputMode: 'decimal' }
}}
fullWidth
type="number"
Expand Down
13 changes: 10 additions & 3 deletions src/components/Routines/widgets/forms/SessionLogsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ export const SessionLogsForm = ({ dayId, routineId, selectedDate }: SessionLogsF
: null}
</InputAdornment>

}
},
htmlInput:{
inputMode: 'decimal'
}
}
}}
/>
Expand All @@ -266,8 +269,12 @@ export const SessionLogsForm = ({ dayId, routineId, selectedDate }: SessionLogsF
{formik.values.logs[index].weightUnit?.name}
</Typography>
</InputAdornment>
}
}
},
htmlInput: {
inputMode: 'decimal'
}

}
}}
/>
</Grid>
Expand Down
Loading