angular / angular/components

bug(MatAutoComplete): requiredSelection value racecon on panel close

Abierto
#30,447 0 comentarios 0 reacciones 0 asignados Ver en GitHub
area: material/autocomplete P4
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

### 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

Autocomplete using "requiredSelection" results in a racecon upon closing the panel

https://github.com/user-attachments/assets/5b211777-c457-47a1-8096-3894430e0d2d

### Reproduction

StackBlitz link: https://stackblitz.com/edit/q5xjs54i?file=src%2Fexample%2Fautocomplete-require-selection-example.ts
Steps to reproduce:
1. open panel
2. while panel is open click reset button

### Expected Behavior

Control value should be set after clicking "reset" button while the autocomplete panel is open

### Actual Behavior

Control has no value after clicking "reset" button while the autocomplete panel is open

### Environment

- Angular: 19.0.0
- CDK/Material: 19.0.0
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start with the linked StackBlitz reproduction in src/example/autocomplete-require-selection-example.ts, focusing on the reset button while the autocomplete panel is open. Trace the panel-close and reset sequence; done means the control retains its value after reset, matching the expected behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
frontend
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.