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

p-dropdown: selected item is not changing when typing the first character of the items in the list #16462

Closed
av-code-crafter opened this issue Oct 1, 2024 · 1 comment · Fixed by #16518
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Milestone

Comments

@av-code-crafter
Copy link

Describe the bug

Before primeng version 16, when we just focus on the dropdown(with the drop down panel closed) and type the first character in the list, it used to change the selected item.

For example check the behavior in version 15:
Recording-20241001_121315.webm

But after version 16 this behavior is changed. The selected item doesnot change when typing first character of list items.

How can we achieve the same behavior ?

Environment

Windows 10

Reproducer

No response

Angular version

17

PrimeNG version

16

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@av-code-crafter av-code-crafter added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 1, 2024
@capc0
Copy link
Contributor

capc0 commented Oct 11, 2024

You can set selectOnFocus to true in order to have the selection set correctly. However, the panel will be shown. So you effectivly have to confirm the selection with either tab or enter.

I have create a PR to add the property autoShowPanelOnPrintableCharacterKeyDown. In combination this restores the original behaviour.

@cetincakiroglu cetincakiroglu added this to the 17.18.12 milestone Oct 11, 2024
cetincakiroglu added a commit that referenced this issue Oct 11, 2024
dropdown: added option to disable showing the panel on key down (#16462)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants