Hey, I just love the new look of ion-datetime. Unfortunately it’s only working well in the current month.
Here’s my code (ionic 6.0.1):
<ion-item>
<ion-label>{{ 'AUDIT.date' | translate }}</ion-label>
<ion-text slot="end">{{ audit.date | date:'dd.MM.yyyy' }}</ion-text>
<ion-button slot="end" fill="clear" id="open-date-input">
<ion-icon icon="calendar"></ion-icon>
</ion-button>
<ion-popover trigger="open-date-input" show-backdrop="true">
<ng-template>
<ion-datetime #popoverDatetime presentation="date" max="2025" [min]="today.startMin" mode='md'
(ionChange)="audit.date = popoverDatetime.value">
</ion-datetime>
</ng-template>
</ion-popover>
</ion-item>
But I also tried it with just
<ion-datetime> </ion-datetime>
with the same result.
1 post - 1 participant