bug(datepicker): monthSelected doesn't actually update formControl if calendar view closed before picking a date in the month
- 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
When opening a 'monthView' and closing a calendar in monthSelected event, pre-setting formControl value, its actually not changed. Its visible from the example I attached
### Reproduction
StackBlitz link: https://stackblitz.com/edit/c5ckw68f?file=src%2Fexample%2Fdatepicker-views-selection-example.html,src%2Fexample%2Fdatepicker-views-selection-example.ts,src%2Fexample%2Fdatepicker-views-selection-example.css
Steps to reproduce:
1. Select a different month in the calendar
2. Check the output values
### Expected Behavior
formControl value has a selected month
### Actual Behavior
formControl value doesn't change
### Environment
- Angular: 19.1.3
- CDK/Material: 19.1.3
- Browser(s): Chrome (all basically)
- Operating System: Windows
Guía de contribución
Línea de trabajo
Comienza con la reproducción de StackBlitz, especialmente con src/example/datepicker-views-selection-example.html y src/example/datepicker-views-selection-example.ts, y reproduce el flujo de monthView cerrando el calendario desde el evento monthSelected. Sigue la ruta de actualización del form-control del datepicker y verifica que seleccionar un mes deje el formControl con el mes seleccionado después de que se cierre el calendario.
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