ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

(ngValueChange) and [dateCustomClasses] do not work together

Open fabiogiurdanella opened this issue 5 years ago • 2 comments

<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.

fabiogiurdanella avatar Aug 24 '20 12:08 fabiogiurdanella

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.

sacav1 avatar Nov 05 '20 08:11 sacav1

Hi ! Anyone found a solution about this ?

jordan-tpz avatar Jan 06 '21 13:01 jordan-tpz