Jubair70:fix/date-selection

This commit is contained in:
Jubair-Hossain
2023-07-19 17:53:23 +06:00
parent 161ca0ee28
commit 5ad517f1d3

View File

@ -58,6 +58,7 @@ const ResumeInput: React.FC<Props> = ({ type = 'text', label, path, className, m
openTo="year"
label={label}
value={dayjs(value)}
views={['year', 'month', 'day']}
slots={{ textField: (params) => <TextField {...params} error={false} className={className} /> }}
onChange={(date: dayjs.Dayjs | null) => {
if (!date) return onChangeValue('');