Does DatePicker must have a onChange handler?
I am trying to use DatePicker but I can't type the day portion of the date it doesn't emit any errors or warnings here is my code below....
any ideas??
01.
const SingleDate = ({ label, required, name, ...props }: ISingleDate): React.ReactElement => {
02.
return
(
03.
<div className=
"erp-input-date"
>
04.
<label className=
"k-form-field"
data-cy={name}>
05.
<span>{label}</span>
06.
{required && <span className=
"erp-field-required"
>*</span>}
07.
<DatePicker
08.
{...props}
09.
name={name}
10.
format=
"dd/MM/yyyy"
11.
formatPlaceholder={{ year:
"ano"
, month:
"mes"
, day:
"dia"
}}
12.
/>
13.
</label>
14.
</div>
15.
);
16.
};