Closed
Description
Is this a regression?
#24384 introduces this bug
Description
When passing a new Date()
to the [minDate] Input on mat calendar, selectedDateChange is not emitted when clicking on a date with the mouse.
Reproduction
Steps to reproduce:
- Open the Stackblitz example
- Click on any date on the calendar
Expected Behavior
Should display the selected date below the calendar and log the current date
Actual Behavior
Nothing happens, the selected date does not change, and nothing is logged to the console.
Environment
Macos 12.2.1 (21D62), Chrome 98.0.4758.102
Additional notes from bug reported
I would not recommend passing a new Date()
every time to the minDate
or maxDate
inputs, even if it didn't cause this bug. I'll write up this bug for it anyways as something to consider.