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: Component doesn't blur out after selecting date, and Clicking on input when calendar is open does not hit close event for the calendar. #15858

Closed
arjun-cloudoffis opened this issue Jun 18, 2024 · 1 comment
Labels
Resolution: By Design The behavior in the issue is by design and the component exhibits the expected behavior

Comments

@arjun-cloudoffis
Copy link

Describe the bug

Here I am facing 2 issues with primeng calendar.

  1. On selecting a date from primeng calendar, the input will hit close event, but when user switch tabs back and forth the calendar would open again.
primeng_bug_1_vid.mp4
  1. On clicking the input of already opened calendar, it does not close the calendar.
primeng_bug_2_vid.mp4

Environment

Angular application with Primeng 17.12.0 and Angular version 17.0.8.

Reproducer

https://stackblitz.com/edit/glwia5?file=package.json

Angular version

17.0.8

PrimeNG version

17.12.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.10.0

Browser(s)

Chrome

Steps to reproduce the behavior

No response

Expected behavior

No response

@arjun-cloudoffis arjun-cloudoffis added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 18, 2024
@cetincakiroglu
Copy link
Contributor

Hi,

Thanks for reporting the issue, this is not a bug, it's made by design. Selection is not an action that results in blur. You need to take the focus out of the component to make it blurred, which is possible by clicking outside or focusing on another element in the document.

This is not a bug, it's intentional behavior. Closing the issue.

@cetincakiroglu cetincakiroglu added Resolution: By Design The behavior in the issue is by design and the component exhibits the expected behavior and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: By Design The behavior in the issue is by design and the component exhibits the expected behavior
Projects
None yet
Development

No branches or pull requests

2 participants