Skip to content

Commit

Permalink
fix(datepicker): double tap ios issue
Browse files Browse the repository at this point in the history
  • Loading branch information
daniloff200 committed Jun 17, 2020
1 parent 1dc5308 commit c058d93
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/datepicker/bs-datepicker-inline.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ export class BsDatepickerInlineDirective implements OnInit, OnDestroy, OnChanges
*/
@Output() bsValueChange: EventEmitter<Date> = new EventEmitter();

/**
* Emits an event when the datepicker is shown
*/
@Output() onShown: EventEmitter<boolean>;
/**
* Emits an event when the datepicker is hidden
*/
@Output() onHidden: EventEmitter<boolean>;

protected _subs: Subscription[] = [];

private _datepicker: ComponentLoader<BsDatepickerInlineContainerComponent>;
Expand All @@ -82,6 +91,9 @@ export class BsDatepickerInlineDirective implements OnInit, OnDestroy, OnChanges
_viewContainerRef,
_renderer
);

this.onShown = this._datepicker.onShown;
this.onHidden = this._datepicker.onHidden;
}

ngOnInit(): void {
Expand Down

0 comments on commit c058d93

Please sign in to comment.