Input in Overlaypanel won't have focus #12284
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
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.
The text was updated successfully, but these errors were encountered: