I am using ngbPopover
with ngb-datepicker
and ngb-timepicker
<div class="input-group">
<input class="form-control" formControlName="createdStartDate" disabled="true"
[value]="createdStartDateValue?(createdStartDateValue|date:'dd/MM/yyyy, HH:mm'):createdStartDateLabel">
<div class="input-group-append">
<button class="btn btn-outline-secondary calendar" type="button" placement="bottom" popoverTitle="Select Date Time" [ngbPopover]="dateTimePicker" (click)="$event.stopPropagation()"></button>
<ng-template #dateTimePicker>
<ngb-datepicker [ngModel]="createdStartDate" (ngModelChange)="getCreatedStartDatetime()" [ngModelOptions]="{standalone:true}">
</ngb-datepicker>
<ngb-timepicker [ngModel]="createdStartTime" (ngModelChange)="createdStartTime=$event;getCreatedStartDatetime()" [ngModelOptions]="{standalone:true}">
</ngb-timepicker>
</ng-template>
</div>
</div>
It is closing as soon as I try to add some input in the Timepicker. How to stop this from happening?