Reproduction
https://stackblitz.com/edit/mat-date-range-fn-bug
Steps to reproduce:
- Pick a date using the first date picker ([min], [max] bound with member variable) - works as expected
- Pick a date using the second date picker ([min], [max] bound with function) - UNABLE TO PICK A DATE RANGE.
Expected Behavior
I am expecting that the date-range-picker can be set with dynamic mutable min and max values.
Actual Behavior
You are unable to use the picker when [min] or [max] or both is bound to a function that returns new Date or Moment objects every time.
Environment
- Angular: 10.0.2
- CDK/Material: 10.0.1
- Browser(s): Chrome and Safari
- Operating System: macOS