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: Requires Two Clicks to Close After Inputting Date #7610

Open
im-asad opened this issue Jan 15, 2025 · 1 comment
Open

Calendar: Requires Two Clicks to Close After Inputting Date #7610

im-asad opened this issue Jan 15, 2025 · 1 comment
Labels
Status: Needs Reproducer Issue needs a runnable reproducer

Comments

@im-asad
Copy link

im-asad commented Jan 15, 2025

Describe the bug

The date picker in Calendar component requires two clicks to close after a date has been inputted. This behavior is observed under the following conditions:

After typing in a date in the date input field, the date picker reflects the selected date as expected.
However, when trying to close the date picker, the user needs to click twice before it actually closes.

Reproducer

No response

System Information

primereact: 10.8.5
react: 18.2.0

Steps to reproduce the behavior

  1. Click on the date input so that the input field is focused
  2. Type in any valid date, the date picker shows the correct date
  3. Click on the highlighted date on the date picker once (the date picker should close here but it doesn't)
  4. Click on the highlighted date again on the date picker to close the picker

Expected behavior

Expected behaviour would be that once the date is typed in the input field and the date picker highlights correct date, we should be able to close the date picker by just clicking once on the highlighted date instead of twice.

It seems like once the input field is focused, we require two clicks, one to unfocus the input field and then the second one to select the date on date picker which is not the right behaviour.

@im-asad im-asad 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 15, 2025
@melloware melloware changed the title Date Picker Requires Two Clicks to Close After Inputting Date Calendar: Requires Two Clicks to Close After Inputting Date Jan 16, 2025
@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 Jan 16, 2025
Copy link

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

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