Describe the bug
Adding showYearPicker prop to show only year picker. But it shows a full calendar.
To Reproduce
Creating a DatePicker component with the simplest options:
() => {
const [startDate, setStartDate] = useState(new Date());
return (
<DatePicker
selected={startDate}
onChange={date => setStartDate(date)}
showYearPicker
dateFormat="yyyy"
/>
);
};
Expected behavior
Calendar only shows Year Picker as in Example
Screenshots
If applicable, add screenshots to help explain your problem.


Additional context
Double check the source code and this property might be missing. Tried showMonthYearPicker and this works.
This will be released in the next version, stay tuned.
Can you try this again with v2.15.0?
Can you try this again with v2.15.0?
Thanks for the quick update, v2.15.0 resolved this ticket
Cheers,
Duc
Most helpful comment
Can you try this again with v2.15.0?