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: with showTime and dateFormat, input field doesn't work #6552

Open
sbasken opened this issue May 2, 2024 · 5 comments
Open

Calendar: with showTime and dateFormat, input field doesn't work #6552

sbasken opened this issue May 2, 2024 · 5 comments
Labels
Status: Needs Reproducer Issue needs a runnable reproducer

Comments

@sbasken
Copy link

sbasken commented May 2, 2024

Describe the bug

If I set showTime to true and dateFormat to "MM d, yy", I can't change the input field by typing/ keyboard. It works if one of them is used but when both props are added, it stops working.

I tried changing display value by disabling the dateFormat and creating the function to format the date and use that function (for example: value={formatDate(dateTime)}), it renders blank in the field.

If there is any workaround that I could use and share with me, I'd appreciate it - thanks!

Reproducer

No response

PrimeReact version

10.2.1

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

Chrome Version 124.0.6367.60

Steps to reproduce the behavior

set showTime to true and dateFormat to "MM d, yy" and try changing the value in the input field manually by deleting and typing numbers.

Expected behavior

The selected date and time on the calendar should be updated along with the date and time in the input field.

@sbasken sbasken added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 2, 2024
@melloware
Copy link
Member

Have you tried 10.6.4? Recent changes were made around keyboard entry.

@melloware melloware added Status: Needs Reproducer Issue needs a runnable reproducer and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels May 3, 2024
Copy link

github-actions bot commented May 3, 2024

Please fork the Stackblitz project and create a case demonstrating your bug report. This issue will be closed if no activities in 20 days.

@sbasken
Copy link
Author

sbasken commented May 5, 2024

@melloware we haven't tried 10.6.4 - will do and see if that works, thank you!!!

@melloware
Copy link
Member

10.6.5 is out so try that!

@sbasken
Copy link
Author

sbasken commented May 5, 2024

Thank you @melloware !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Reproducer Issue needs a runnable reproducer
Projects
None yet
Development

No branches or pull requests

2 participants