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

Calendar: Automatic Date Format Issue in Textbox #4735

Closed
bizwms opened this issue Aug 4, 2023 · 4 comments
Closed

Calendar: Automatic Date Format Issue in Textbox #4735

bizwms opened this issue Aug 4, 2023 · 4 comments
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted

Comments

@bizwms
Copy link

bizwms commented Aug 4, 2023

Describe the bug

There is an issue with the automatic date formatting in the textbox of the Calendar component in PrimeReact v9.6.0. When attempting to manually enter the date into the textbox, the date gets incorrectly formatted. For instance, when trying to enter '08/31/2023', it gets automatically converted to '08/03/2023'. This behavior is also observed on the official demo site.

Reproducer

https://primereact.org/calendar/

PrimeReact version

9.6.0

React version

18.x

Language

TypeScript

Build / Runtime

Next.js

Browser(s)

Chrome 115.0.5790.171(Official Build)(64 bit)

Steps to reproduce the behavior

  1. Visit the official demo site at https://primereact.org/calendar/
  2. Click on the Calendar component to open the date picker.
  3. In the textbox, attempt to manually enter the date '08/31/2023'.

The date is incorrectly formatted to '08/03/2023', reproducing the issue.

Expected behavior

The Calendar component's textbox should correctly format the manually entered date. When a user tries to input '08/31/2023', it should remain as '08/31/2023' and not be incorrectly changed.

@bizwms bizwms added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 4, 2023
@melloware melloware changed the title Automatic Date Format Issue in Textbox of Calendar Component Calendar: Automatic Date Format Issue in Textbox Aug 4, 2023
@melloware
Copy link
Member

@bizwms isn't this a duplicate of this issue: #4134 ??

@melloware melloware added Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Aug 4, 2023
@bizwms
Copy link
Author

bizwms commented Aug 7, 2023

@melloware
Is it unsupported to enter dates manually in the calendar component?
#4134 is written as a new feature.
I think it's a bug that I can't enter even though there is a text box.

@melloware
Copy link
Member

I switched it to a bug the user who entered that ticket entered it as a feature which is why it was automatically assigned as a New Feature.

@bizwms bizwms closed this as completed Aug 7, 2023
@bizwms
Copy link
Author

bizwms commented Aug 7, 2023

Now close my ticket.Due to duplication, my ticket will be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Projects
None yet
Development

No branches or pull requests

2 participants