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: Autofocus not working #14745

Closed
angelo-v opened this issue Feb 7, 2024 · 1 comment · Fixed by #14814
Closed

Calendar: Autofocus not working #14745

angelo-v opened this issue Feb 7, 2024 · 1 comment · Fixed by #14814
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@angelo-v
Copy link

angelo-v commented Feb 7, 2024

Describe the bug

Autofocus is not working on a p-calendar

Environment

Angular web application

Reproducer

https://stackblitz.com/edit/stackblitz-starters-adlfaf?file=src%2Fmain.ts

Angular version

17.1.2

PrimeNG version

17.5.0

Build / Runtime

TypeScript

Language

TypeScript

Node version (for AoT issues node --version)

20.11

Browser(s)

No response

Steps to reproduce the behavior

Insert a calendar with autofocus like <p-calendar pAutoFocus [autofocus]="true" [(ngModel)]="date"></p-calendar>

Expected behavior

The focus should be set on the calendar component

@angelo-v angelo-v added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 7, 2024
@mehmetcetin01140 mehmetcetin01140 added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 8, 2024
@cetincakiroglu cetincakiroglu modified the milestones: 17.7.0, 17.8.0 Feb 12, 2024
@mehmetcetin01140 mehmetcetin01140 self-assigned this Feb 15, 2024
cetincakiroglu added a commit that referenced this issue Feb 22, 2024
Fixed #14745 - Calendar | Autofocus not working
@angelo-v
Copy link
Author

Thanks for fixing. Unfortunately we still have an issue using it in p-dialog as in #12720 (comment)

This problem is not restricted to p-calendar but in general with elements inside of a p-dialog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants