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: Input Mask Requires Second Click to Activate on Input Fields #7609

Open
im-asad opened this issue Jan 15, 2025 · 0 comments
Open
Labels
Type: Bug Issue contains a defect related to a specific component.

Comments

@im-asad
Copy link

im-asad commented Jan 15, 2025

Describe the bug

When interacting with date input fields in specific areas of the application, the date mask does not appear or apply on the first click. Users are required to click the input field twice to see the date mask or for it to activate correctly.

Reproducer

https://stackblitz.com/edit/rjd1uagh?file=src%2FApp.jsx

System Information

primereact: 10.8.5
react: 18.2.0

Steps to reproduce the behavior

  1. Click once which would show the date picker
  2. Click again to see the input mask

Expected behavior

It seems like the date picker requires two clicks, the first one is being used to make the picker visible and then the second one is used to focus the input field. Maybe it would be ideal to have one click which opens the picker and focuses the input field.

@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 added Type: Bug Issue contains a defect related to a specific component. 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
@melloware melloware changed the title Date Mask Requires Second Click to Activate on Input Fields Calendar: Date Mask Requires Second Click to Activate on Input Fields Jan 16, 2025
@melloware melloware changed the title Calendar: Date Mask Requires Second Click to Activate on Input Fields Calendar: Input Mask Requires Second Click to Activate on Input Fields Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants