CDK Virtual Scroll Viewport with CDK A11y ActiveDescendantKeyManager
- Dominant language
- TypeScript
- Stars
- 25k
- Forks
- 6.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 91
Description
#### What is the expected behavior?
Virtual Scroll to work with CDK A11y ActiveDescendantKeyManager
#### What is the current behavior?
Since virtual scroll only loads partial information and loads more when you scroll (recycling the view), ActiveDescendantKeyManager only get the indexes of the current items loaded by the . As I load more, the indexes repeats themselves, since the virtual scroll adds and deletes items
#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-zmawwx
Contributor guide
Research direction
Start with the linked StackBlitz reproduction and trace how the CDK virtual scroll viewport exposes items to ActiveDescendantKeyManager. Compare the visible-item recycling behavior with the key manager's index handling. Done means the key manager continues to work as virtual scrolling loads more items without repeated indexes, with the reproduction confirming the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- accessibility, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100