suid
suid copied to clipboard
[FEATURE] Date time picker
Feature request: Date time picker
Reference: https://mui.com/x/react-date-pickers/date-time-picker/
A workaround could be to use a date or datetime-local type:
<TextField
label={t('gpxTime')}
type='datetime-local'
value={...}
onChange={gpxTimeChangeHandler}
/>
However when I try to use it in my application, I get an error because the InputBase components uses a setSelectionRange()
method which is forbidden on this type of input controls (https://github.com/swordev/suid/blob/main/packages/material/src/InputBase/InputBase.tsx#L370).
If I comment this line out the date picker is working fine, though and I am wondering what the consequences might be !