add steps to web input of numbers, #329

This commit is contained in:
MichaelDvP
2022-01-26 18:35:55 +01:00
parent 233d82805b
commit 508a707c6e
3 changed files with 17 additions and 4 deletions

View File

@@ -244,6 +244,7 @@ const DashboardData: FC = () => {
sx={{ width: '30ch' }}
type={deviceValue.u ? 'number' : 'text'}
onChange={updateValue(setDeviceValue)}
inputProps={{ step: deviceValue.s }}
InputProps={{
startAdornment: <InputAdornment position="start">{DeviceValueUOM_s[deviceValue.u]}</InputAdornment>
}}