You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior
The property [autofocus]="true" don't affect the focus of the autocomplete component
Expected behavior
When The property [autofocus]="true" then the focus is set on the autocomplete in the render view
What is the motivation / use case for changing the behavior?
Actually if you want to set the focus on the autocomplete component , you need to use a ViewChild and a "focusInput()" on the aucomplete retrieved by the viewchild , it makes difficult to share a common approach to handle the focus of every primeng input component
Please tell us about your environment:
IDE : Intellij , prineng 11.3.2 (also tested on 11.4.1)
Angular version: 11.2.10
PrimeNG version: 11.3.2 (also tested on 11.4.1)
Browser: [all ]
Language: [TypeScript 4.0.3 ]
The text was updated successfully, but these errors were encountered:
Hi,
When I use the Autocomplete stackblitz from primeng , and I set the property autofocus to true , the focus is not working
here an example with the autofocus property
https://stackblitz.com/edit/primeng-autocomplete-demo-faaeoh?file=src/app/app.component.html
Current behavior
The property [autofocus]="true" don't affect the focus of the autocomplete component
Expected behavior
When The property [autofocus]="true" then the focus is set on the autocomplete in the render view
What is the motivation / use case for changing the behavior?
Actually if you want to set the focus on the autocomplete component , you need to use a ViewChild and a "focusInput()" on the aucomplete retrieved by the viewchild , it makes difficult to share a common approach to handle the focus of every primeng input component
Please tell us about your environment:
IDE : Intellij , prineng 11.3.2 (also tested on 11.4.1)
Angular version: 11.2.10
PrimeNG version: 11.3.2 (also tested on 11.4.1)
Browser: [all ]
The text was updated successfully, but these errors were encountered: