Skip to content

Commit 6b3224d

Browse files
committed
fix(date-picker): invoke markForCheck on opening and closed
1 parent 4e33be1 commit 6b3224d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

projects/igniteui-angular/date-picker/src/date-picker/date-picker.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr
904904
this._initializeCalendarContainer(e.componentRef.instance);
905905
this._calendarContainer = e.componentRef.location.nativeElement;
906906
this._collapsed = false;
907+
this.cdr.markForCheck();
907908
});
908909

909910
this._overlayService.opened.pipe(...this._overlaySubFilter).subscribe(() => {
@@ -936,6 +937,7 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr
936937
this._overlayId = null;
937938
this._calendar = null;
938939
this._calendarContainer = undefined;
940+
this.cdr.markForCheck();
939941
});
940942
}
941943

0 commit comments

Comments
 (0)