Skip to content

Commit

Permalink
fix(date-picker): Fixes in date picker #3034
Browse files Browse the repository at this point in the history
  • Loading branch information
sboykova committed Feb 20, 2019
1 parent 7cbff7a commit 894cfcc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,9 @@ export class IgxDatePickerComponent implements IDatePicker, ControlValueAccessor
*@hidden
*/
public ngOnDestroy(): void {
this._overlayService.hide(this._componentID);
if (this._componentID) {
this._overlayService.hide(this._componentID);
}
this._destroy$.next(true);
this._destroy$.complete();
}
Expand Down Expand Up @@ -1122,6 +1124,7 @@ export class IgxDatePickerComponent implements IDatePicker, ControlValueAccessor

private _onClosed(): void {
this.collapsed = true;
this._componentID = null;
this.onClose.emit(this);

if (this.getEditElement()) {
Expand Down

0 comments on commit 894cfcc

Please sign in to comment.