bug(mat-select): wrong initial values when using async object property
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### Is this a regression?
- [X] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
14.2.12
### Description
Hey everyone, if I try to access a property of an object loaded with the async pipe it appears to be empty until I click inside the mat-select element.
It's hard to explain so there's a stackblitz to show the issue.
### Reproduction
https://stackblitz.com/edit/rjpwlz?file=src%2Fexample%2Fselect-no-ripple-example.html
### Expected Behavior
The first mat-select in the example should initially display "2"
### Actual Behavior
The first mat-select seems empty until you click on it
### Environment
- Angular: 16.0.4
- CDK/Material: 16.0.3
- Browser(s): Chrome 113.0.5672.127
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 11
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con la riproduzione StackBlitz collegata e verifica il comportamento usando Angular 16.0.4 con CDK/Material 16.0.3. Confronta il rendering iniziale del primo mat-select con il comportamento precedente di 14.2.12 e considera concluso l'issue quando la proprietà asincrona dell'oggetto visualizza inizialmente "2" senza fare clic sul select.
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à
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100