Only change Year in a full Date
FabDonRixos opened this issue · comments
FabDonRixos commented
Before you start - checklist
- I followed instructions in documentation written for my React-Date-Picker version
- I have checked if this bug is not already reported
Description
I tried to make an DatePicker where there is a defined day and month and you can only change the year. But the input will always show 01.01.
Steps to reproduce
use maxDetail="decade"
and use format="dd.MM.yyyy"
Expected behavior
The day and month stay and only the year changes like from 22.02.2024 -> 22.02.2028
Actual behavior
The date changes from 22.02.2024 -> 01.01.2028
Additional information
Environment
- Browser (if applicable): Chrome 122
- React-Date-Picker version: ^10.5.2
- React version: ^18.2.0
github-actions commented
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.
github-actions commented
This issue was closed because it has been stalled for 14 days with no activity.