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: Manual date input when time picker is included #6919

Closed
sanjogs opened this issue Dec 3, 2024 · 2 comments
Closed

Calendar: Manual date input when time picker is included #6919

sanjogs opened this issue Dec 3, 2024 · 2 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@sanjogs
Copy link

sanjogs commented Dec 3, 2024

Describe the bug

When time picker is enabled for the calendar component, if we manually input a date , the input is ignored. Manual date input only works when time part is included too. Also the time needs to be included in specific format including the spaces. Is there a way to have the calendar automatically populate current time or start of day (12:00 am) when user only inputs the date part?

Reproducer

https://stackblitz.com/edit/primevue-3-vite-issue-template-pymr6i?file=src%2FApp.vue,src%2Fcomponents%2FHelloWorld.vue

PrimeVue version

3.53.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Open the included stack blitz reproducer
  2. I have included calendar component with date picker only and another one which incldes both date and time picker
  3. Manual date input works fine on the date picker, but doesn't work on the date and time picker

Expected behavior

When user doesn't input a particular time, then it probably makes sense to automatically set time to start of the day (12:00 AM).

@sanjogs sanjogs added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 3, 2024
@tugcekucukoglu
Copy link
Member

Please track #6739

@sanjogs
Copy link
Author

sanjogs commented Dec 5, 2024

@tugcekucukoglu thank you for your response! It seems the issue reported in #6739 pertains to PrimeVue version 4, whereas the issue I reported exists in version 3.53. While the two issues appear related, they don’t seem to be exactly the same. I’m curious to know if version 3 will also be addressed as part of #6739.

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

2 participants