-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Autofocus #13082
Comments
Having the same issue. It seems related to the "fix" done here #12571 |
Ive have the same issue on dynamic dialog |
Hi, could you release the same solution for version 15? v15.1.1 in this version it takes the attribute with the [autofocus] directive and it works for me.
v15.4.1 takes the first element among the focusable ones, in my case it doesn't work well, it puts the focus in the button at the top right for closing:
16.3.1 in this version, the focus() method completely manages the focus, it should be copied to a new version 15 and republished, if you do this you will make me a happy programmer.
|
…10472): dialog focuses on content on show
Describe the bug
Hello! I am using your library. And I have one problem when I use your DynamicPopupComponent and inside it I have an input with your directives pInputText pAutofocus [autofocus]=true. After popup opened, focus leave input element and set to "x" button in top-right corner. This is not very convenient, have to come up with own implementation : like write own ngAfterContentChecked() and set forcibly focus on your pInputText element.
Environment
Local
Reproducer
No response
Angular version
15
PrimeNG version
15.4.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.16.0
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: