Open fabiogiurdanella opened 3 years ago
same problem here. The parent component has OnPush stategy.
if I update customClassWeek by adding or removing element, the bsValueChange event continue to be trigger BUT I need to hover the datepicker to fire the change detection on it
if I update customClassWeek by creating a new array then the change detection is triggered and the datepicker is updated... BUT the bsValueChange don't work anymore. As if the @Input() dateCustomClasses onChange remove the bsValueChange event emitter.
Hi ! Anyone found a solution about this ?
<bs-datepicker-inline [minDate]="todayDate" [bsConfig]="bsConfig" *ngIf="this.period === 'W'" [bsValue]="todayDate" (bsValueChange)="ChangeData($event)" [dateCustomClasses]="customClassWeek"></bs-datepicker-inline>
This is not working, when i add customClasses the event 'bsValueChange' is not triggered. If i remove custom classes, the event return to work correctly.