bug(material-autocomplete): keyboard interaction doesn't work properly when using cdk-virtual-scroll-viewport
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
#### Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-5rmvpq
Steps to reproduce:
1. Click in the input field to open the autocomplete
2. On the keyboard click many times on the "down" key or the "up" key
#### Expected Behavior
If the focus goes beyond the visible viewport, the list should automaticly scroll down/up
#### Actual Behavior
It just doesn't scroll, and if the end of the actuall renderd items is reached, it comes back to the start and doesn't render new items.
By the way we had to implement a little hack that the virtual viewport is correctly rendert at all. It is the (opened)-Event at the mat-autocomplete you can see in the stackblitz example.
#### Environment
- Angular: 8.x
- CDK/Material: 8.x
- Browser(s): Tested in Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Tested with Windows
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la reproduction StackBlitz liée et examinez l’interaction au clavier de Angular Material autocomplete et CDK virtual-scroll. Vérifiez le comportement en appuyant plusieurs fois sur les touches haut/bas, notamment lors du déplacement au-delà de la fenêtre d’affichage visible et jusqu’à la limite des éléments rendus. C’est terminé lorsque la navigation au clavier fait défiler et rend les éléments appropriés au lieu de revenir au début.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100