kendo-angular
kendo-angular copied to clipboard
[DateTimePicker] Programmatically resetting min and max properties does not work
Describe the bug
Having initially set the min
and max
properties of the DateTimePicker
, when trying to change their values programmatically to null
or undefined
, the component still displays the initial date range.
To Reproduce
- Create a DateTimePicker component.
- Bind its
min
andmax
properties. - Programmatically reset the values of the
min
andmax
properties tonull
orundefined
.
For a better illustration of the issue, please reference the following StackBlitz demo: https://stackblitz.com/edit/angular-z5gwd7-nteo1h?file=src%2Fapp%2Fapp.component.ts
Expected behavior
When the min
and max
properties are set to null
or undefined
, the component should not display a specific range but all dates instead.
I am also facing this issue. This is clearly regression and should be fixed as fast as possible.
It is strange that you can set the min/max to any date dynamically but it is not possible to set it to undefined. I can not imagine that it would be hard to fix. This should be low hanging fruit to make your paying (!) clients happy.
If Kendo would be open-source this issue would have been fixed long time ago.
Fixed in v15.2.0