Skip to content
Merged
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
2 changes: 1 addition & 1 deletion src/components/Measurements/widgets/EntryForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const EntryForm = ({ entry, closeFn, categoryId }: EntryFormProps) => {
label={t('value')}
error={formik.touched.value && Boolean(formik.errors.value)}
helperText={formik.touched.value && formik.errors.value}
slotProps={{ htmlInput: { inputMode: 'decimal' } }}
{...formik.getFieldProps('value')}
/>
{categoryQuery.isLoading
Expand Down Expand Up @@ -109,7 +110,6 @@ export const EntryForm = ({ entry, closeFn, categoryId }: EntryFormProps) => {
helperText={formik.touched.notes && formik.errors.notes}
{...formik.getFieldProps('notes')}
/>

<Stack direction="row" sx={{ justifyContent: "end", mt: 2 }}>
<Button color="primary" variant="contained" type="submit" sx={{ mt: 2 }}>
{t('submit')}
Expand Down
6 changes: 4 additions & 2 deletions src/components/Nutrition/screens/BmiCalculator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ export const BmiCalculator = () => {
label={t('height')}
fullWidth
slotProps={{
input: { endAdornment: <Typography>{t('cm')}</Typography> }
input: { endAdornment: <Typography>{t('cm')}</Typography> },
htmlInput: { inputMode: 'decimal' }
}}
type="number"
value={height ?? ""}
Expand All @@ -113,7 +114,8 @@ export const BmiCalculator = () => {
<TextField
label={t('weight')}
slotProps={{
input: { endAdornment: <Typography>{t('server.kg')}</Typography> }
input: { endAdornment: <Typography>{t('server.kg')}</Typography> },
htmlInput: { inputMode: 'decimal' }
}}
fullWidth
type="number"
Expand Down
7 changes: 6 additions & 1 deletion src/components/Routines/widgets/forms/SessionLogsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ export const SessionLogsForm = ({ dayId, routineId, selectedDate }: SessionLogsF
</Typography>
: null}
</InputAdornment>

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