bug(MatFormField): Rendering MatChips within a MatChipGrid using NgTemplateOutlet breaks the floating label.
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### Description
Rendering MatChips within a MatChipGrid using NgTemplateOutlet breaks the floating label.
### Reproduction
StackBlitz link:
https://stackblitz.com/edit/itsykq?file=src%2Fexample%2Fchips-form-control-example.ts
### Expected Behavior
I expected the rendered chip template to work as normal chip.
### Actual Behavior
What happens is that when we click away from the input field, the float label floats down, making the label obstructed by the chips added.
### Environment
- Angular: 17.1
- CDK/Material: 17.1
- Browser(s): Chrome
- Operating System: macOS
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia eseguendo la riproduzione collegata in StackBlitz e analizzando l'interazione tra MatFormField, MatChipGrid e NgTemplateOutlet descritta. Confronta il comportamento dell'etichetta flottante prima e dopo aver fatto clic al di fuori del campo di input; il lavoro è completato quando i chip renderizzati si comportano normalmente e l'etichetta rimane correttamente flottante senza essere ostruita.
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
- 38/100