mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-15 01:01:43 +10:00
Jubair70:fix/date-selection
This commit is contained in:
@ -58,6 +58,7 @@ const ResumeInput: React.FC<Props> = ({ type = 'text', label, path, className, m
|
|||||||
openTo="year"
|
openTo="year"
|
||||||
label={label}
|
label={label}
|
||||||
value={dayjs(value)}
|
value={dayjs(value)}
|
||||||
|
views={['year', 'month', 'day']}
|
||||||
slots={{ textField: (params) => <TextField {...params} error={false} className={className} /> }}
|
slots={{ textField: (params) => <TextField {...params} error={false} className={className} /> }}
|
||||||
onChange={(date: dayjs.Dayjs | null) => {
|
onChange={(date: dayjs.Dayjs | null) => {
|
||||||
if (!date) return onChangeValue('');
|
if (!date) return onChangeValue('');
|
||||||
|
|||||||
Reference in New Issue
Block a user