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

Input in Overlaypanel won't have focus #12284

Closed
FrankEyk opened this issue Nov 24, 2022 · 0 comments · Fixed by #12295
Closed

Input in Overlaypanel won't have focus #12284

FrankEyk opened this issue Nov 24, 2022 · 0 comments · Fixed by #12295
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@FrankEyk
Copy link

Describe the bug

When an overlaypanel is shown (via a button) the 'onShow' event should focus the input component in the overlaypanel.

The onShow event does trigger, but the focus call does nothing.

Note: There wasn't such unwanted behavior in version 11.0.0

Alternate solution: With the help of a delay, the input field will be focused.

Environment

Windows 10
Angular 13.0.3

Reproducer

https://stackblitz.com/edit/primeng-overlaypanel-demo-qzyygj?file=src/app/app.component.html

Angular version

13

PrimeNG version

13.0.4

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16.14.2

Browser(s)

chrome

Steps to reproduce the behavior

Click on the 'does not work' button, it opens an Overlaypanel with a input component in it, the input is not focused.

Expected behavior

When the Overlaypanel is shown/toggled, the input component should be focused.

@FrankEyk FrankEyk added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 24, 2022
@cetincakiroglu cetincakiroglu added this to the 15.0.0 milestone Nov 28, 2022
@cetincakiroglu cetincakiroglu 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 Nov 28, 2022
@cetincakiroglu cetincakiroglu self-assigned this Nov 28, 2022
cetincakiroglu added a commit that referenced this issue Nov 28, 2022
Fixed #12284 - Input in Overlaypanel won't have focus
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.

2 participants