suid icon indicating copy to clipboard operation
suid copied to clipboard

[FEATURE] Date time picker

Open TLCFEM opened this issue 2 years ago • 1 comments

Feature request: Date time picker

Reference: https://mui.com/x/react-date-pickers/date-time-picker/

TLCFEM avatar Oct 27 '22 23:10 TLCFEM

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 !

evlist avatar Dec 12 '22 17:12 evlist