Reputation: 17128
I have use the ngbDatepicker in the form as below
<ngb-panel>
<ng-template ngbPanelTitle>
<div class="row">
<ui-switch (change)="onChange($event,2)" [checked]="professionalLearningEvent.sportsPractive" size="small"></ui-switch>
<label class="accordianTitle" (click)="onAccordianTitleClick(2)">Will your sports practice be
affected ?</label>
</div>
</ng-template>
<ng-template ngbPanelContent>
<div class="container">
<div class="input-group">
<input class="form-control" [formControl]="control" ngbDatepicker [dayTemplate]="getDayTemplate()" #d="ngbDatepicker" [ngClass]="{ 'is-invalid': isFieldInvalid(control) }">
<div class="input-group-append">
<button class="btn btn-sm btn-outline-secondary" (click)="d.toggle()" type="button">
<span class="fa fa-calendar"></span>
</button>
</div>
</div>
</div>
</ng-template>
</ngb-panel>
The datepicker UI is not overflow. Try to find some solution but not able to.
Upvotes: 5
Views: 4738
Reputation: 929
add container='body'
to input element.
Example:
<input type="text" autocomplete="off" name="dp" ngbDatepicker container="body">
Upvotes: 11
Reputation: 17128
The issue was the overflow from the accordian card
Here is the solution just add the below css to override the bootstrap css
.accordion .card {
overflow: visible !important;
}
Upvotes: 5