Closed rozumny closed 4 years ago
@rozumny Could you try setting the start date at the very beginning of the day (00:00) and the end date at the end of the day (23:59)? For timezone and writing-less-code reasons, that's currently the best way to make sure it works consistently, anytime and anywhere.
The examples might need to be updated, and my little recommendation about setting these dates at the start/end of their respective days might need to be more of a mandatory rule; that or it could be handled auto-magically by the component... which would mean introducing a lot more scenarios than I'd like right now. For the time being, see if setting the limits as described works for you.
works perfect, thank you!
How to reproduce: 1) initialize option with following data: this.options = { timepicker: false, enabledDateRanges: [ { start: new Date(now - 3 days), end: new Date(now -2 days) } ] }; 2) bind on date changed action (airChange)="dateChanged($event) 3) click on enabled date in calendar 4) nothing happen, dateChanged is not called