Dropdown: keyboard navigation doesn't scroll items list into view #6123
Labels
Component: Accessibility
Issue or pull request is related to WCAG or ARIA
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
When using keyboard navigation on Dropdown list with
selectOnFocus
prop set tofalse
(default value, prop is missing from.d.ts
BTW) - focused item is not scrolled into view.Reproducer
https://primereact.org/dropdown/#filter
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
ArrowDown
several times until focused item is hidden below.Expected behavior
List should be scrolled into view when focused items changed.
This could be fixed with selecting
data-p-focused="true"
first:And adding
focusedOptionIndex
intouseUpdateEffect
:The text was updated successfully, but these errors were encountered: