Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(datepicker): monthSelected doesn't actually update formControl if calendar view closed before picking a date in the month #30463

Open
1 task
sericuper opened this issue Feb 9, 2025 · 0 comments
Labels
needs triage This issue needs to be triaged by the team

Comments

@sericuper
Copy link

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
@sericuper sericuper added the needs triage This issue needs to be triaged by the team label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

1 participant