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

DatePicker -- undesirable behavior when manually editing a date #7113

Open
4 tasks
tht-work opened this issue Jan 18, 2025 · 0 comments
Open
4 tasks

DatePicker -- undesirable behavior when manually editing a date #7113

tht-work opened this issue Jan 18, 2025 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@tht-work
Copy link

Describe the bug

I am not sure if this is a bug. I am not sharing code for this potential issue -- the potential issue can be reproduced on the PrimeVue website DatePicker component page for v4, if you have a date selected like this for example,

Image

If you want to change the month via typing in the field so you delete 01 (January) and you want to change it to 12 (December) (or any double digit month) the component puts a leading zero so when you try to type 12, the component shows 021 for the month section. Was this intentional or is this a bug?

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

N/A

Environment

N/A

Vue version

3

PrimeVue version

4

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

See description

Expected behavior

Typing in the the month section of the date field does not add a leading 0

@tht-work tht-work added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant