wojtekmaj / react-date-picker

A date picker for your React app.

Home Page:https://projects.wojtekmaj.pl/react-date-picker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Only change Year in a full Date

FabDonRixos opened this issue · comments

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

image
--->
image

Environment

  • Browser (if applicable): Chrome 122
  • React-Date-Picker version: ^10.5.2
  • React version: ^18.2.0

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.

This issue was closed because it has been stalled for 14 days with no activity.