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

Dropdown Array Key Selection skipping last entry. #10408

Closed
denny99 opened this issue Jul 12, 2021 · 0 comments
Closed

Dropdown Array Key Selection skipping last entry. #10408

denny99 opened this issue Jul 12, 2021 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@denny99
Copy link
Contributor

denny99 commented Jul 12, 2021

I'm submitting a ... (check one with "x")

[ x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)
Just go to the show case
https://www.primefaces.org/primeng/showcase/#/dropdown
and try to select paris with arrow key down in the basic example

Current behavior
Selecting the last item in the dropdown per arrow key is not possible

The bug is located here:

for (let i = (index + 1); i < (this.optionsToDisplay.length - 1); i++) {

When searching for the next element the last in the array is skipped. for whatever reason

Expected behavior
Selecting the last item is possible

  • Angular version: 12.x

  • PrimeNG version: 12.x

  • Browser: [all]

@yigitfindikli yigitfindikli added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jul 12, 2021
@yigitfindikli yigitfindikli self-assigned this Jul 12, 2021
@yigitfindikli yigitfindikli added this to the 12.1.0-rc.1 milestone Jul 12, 2021
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

No branches or pull requests

2 participants