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: keyboard navigation doesn't work on dropdown with groups #6124

Closed
hitosu opened this issue Mar 9, 2024 · 2 comments · Fixed by #6430 or leoo1992/GeradorQRCode#23
Closed
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA

Comments

@hitosu
Copy link

hitosu commented Mar 9, 2024

Describe the bug

Keyboard navigation doesn't work on Dropdown with groups because findNextOptionIndex and findPrevOptionIndex uses top level of visibleOptions array to find next / prev position but in case of groups that array consists of group items and actual items are inside items property.

Reproducer

https://primereact.org/dropdown/#group

PrimeReact version

10.5.1

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. Open Dropdown with groups
  2. Try to keyboard navigate with arrows

Expected behavior

findNextOptionIndex and findPrevOptionIndex should look into items property for actual items.

@hitosu hitosu added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 9, 2024
@melloware melloware added Component: Accessibility Issue or pull request is related to WCAG or ARIA and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Mar 9, 2024
@KirilCycle
Copy link
Contributor

@melloware Hello! Can i take this ?

@melloware
Copy link
Member

sure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA
Projects
None yet
3 participants