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

Property [autofocus] not working on Dropdown component #11781

Closed
quranc opened this issue Aug 5, 2022 · 1 comment
Closed

Property [autofocus] not working on Dropdown component #11781

quranc opened this issue Aug 5, 2022 · 1 comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working

Comments

@quranc
Copy link
Contributor

quranc commented Aug 5, 2022

Describe the bug

This is related to #10232.
Autofocus do not have any effect.

Environment

OS: darwin arm64

Reproducer

https://stackblitz.com/edit/github-1ovwbf?file=src/app/app.component.html

Angular version

14.0.7

PrimeNG version

14.0.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16.13.1

Browser(s)

No response

Steps to reproduce the behavior

<p-dropdown [options]="cities" [(ngModel)]="selectedCity" placeholder="Select a City" [autofocus]="true"></p-dropdown>

<p-dropdown [options]="cities" [(ngModel)]="selectedCity" placeholder="Select a City" [autofocus]="false"></p-dropdown>

Autofocus does not have any effect on the dropdown, no matter of values.

Expected behavior

Autofocus should focus the dropdown on load when having the attribute [autofocus]="true"

@quranc quranc added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 5, 2022
@cetincakiroglu cetincakiroglu added this to the 14.Future milestone Aug 8, 2022
@cetincakiroglu cetincakiroglu linked a pull request Aug 8, 2022 that will close this issue
@cetincakiroglu cetincakiroglu added Component: Accessibility Issue or pull request is related to WCAG or ARIA and removed Component: Accessibility Issue or pull request is related to WCAG or ARIA labels Aug 8, 2022
@cetincakiroglu
Copy link
Contributor

cetincakiroglu commented Aug 9, 2022

Hi,

Since this problem occurs across many components, I'm closing this issue and merging them into one #11807. We'll fix them altogether.

Thanks for your support and report!

@cetincakiroglu cetincakiroglu removed this from the 14.Future milestone Aug 11, 2022
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