I seems that once our page load defaulting today's date if you click on another day you cannot select the today's date again. Today's date seems unselectable.
Are you able to reproduce the problem in the following example?
It seems to work fine...
My application is in Angular. Is this the same version of the control as the Angular one?
You can download an Angular example here:
If you change navigatorConfig.selectMode to "Day" it will let you click individual days.
Please let me know if it still doesn't work.
So my component doesn't reload when switching the date back to today's date. It works on any other date.
<sidebar-container #sidebar [(expanded)]="expanded">
<div style="padding: 3px;">
<daypilot-navigator [config]="navigatorConfig" [date]="navigatorDate" (dateChange)="dateChange()" #navigator></daypilot-navigator>
<daypilot-scheduler [config]="config" [events]="events" (viewChange)="viewChange()" #scheduler></daypilot-scheduler>
this.config.startDate = this.navigator.control.selectionStart;
this.config.days = new DayPilot.Duration(this.navigator.control.selectionStart, this.navigator.control.selectionEnd).totalDays() + 1;
You should update the "navigatorDate" value in dateChange(). Otherwise it remains set to the default value (today). The dateChange event only fires if a change is detected.
Another option is to remove the [date] attribute.
There is indeed something wrong with the dateChange() firing, I'm checking the problem.
This issue should be fixed now in the latest sandbox build (2020.4.4804).
Is there any plans to push an update out for the library?