Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only change Year in a full Date #654

Open
2 tasks done
FabDonRixos opened this issue Feb 22, 2024 · 1 comment
Open
2 tasks done

Only change Year in a full Date #654

FabDonRixos opened this issue Feb 22, 2024 · 1 comment
Labels
bug Something isn't working stale

Comments

@FabDonRixos
Copy link

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
@FabDonRixos FabDonRixos added the bug Something isn't working label Feb 22, 2024
Copy link
Contributor

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 github-actions bot added the stale label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant