bug(cdkTable): virtual scroll does not work for tables with cdkRowDefWhen
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
_No response_
### Description
Virtual scroll does not work for tables with multiple cdkRow definitions. Properties remain undefined when a line from another definition is reused.
### Reproduction
StackBlitz link: [cdk-table-virtual-scroll-example](https://stackblitz.com/edit/pye7nuce?file=src%2Fexample%2Fcdk-table-virtual-scroll-example.html)
Steps to reproduce:
1. download and update the project to Angular 21.1 (sorry, I struggled with updating on StackBlitz)
2. run the project and scroll the tables down
### Expected Behavior
See the lines as if there were no virtual scroll.
### Actual Behavior
Rows that have reused a row of the other definition doesn't show their property. It is undefined.
### Environment
- Angular: 21.1.0
- CDK/Material: 21.1.0
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con il cdk-table-virtual-scroll-example di StackBlitz collegato, aggiornalo ad Angular 21.1, eseguilo e scorri le tabelle per riprodurre il problema. Traccia il comportamento della tabella con virtual scroll usando più definizioni cdkRowDefWhen; il lavoro è completato quando le righe riutilizzate mostrano le proprie proprietà esattamente come senza virtual scroll.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100