DynamicDialog: Close button receives initial focus #12643
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Describe the bug
Hello,
When using DynamicDialog (the dialog service) to display a dialog, the close icon gets the focus, as shown in the screenshot below.
I want the auto focus to instead be on one of the form controls inside the dialog - I've tried native
autofocus
as well as the Prime AutoFocus directive- neither seem to stop the (X) from getting focus upon opening the dialog. This also has the unfortunate side effect of pressing [ENTER] immediately after opening the dialog, closes it.Environment
Development in WSL, running in Edge for Linux.
Reproducer
No response
Angular version
15.1
PrimeNG version
15.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.12
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: