Date: 2024-11-10 09:53:02
Score: 2
Natty:
Error cause
- It is said that DatePicker only allows undefined types. This results in a type mismatch
Error resolution
If you want to keep showMonthYearDropdown, you can explicitly set it to undefined when necessary, like this:
<DatePicker
{...field}
{...props}
showMonthYearDropdown={props.showMonthYearDropdown ?? undefined}
/>
Reasons:
- No code block (0.5):
- Contains question mark (0.5):
- Low reputation (1):
Posted by: donny