I use the datetime component with the popover from the docs:
<!-- Datetime in popover with cover element -->
<ion-item button="true" id="open-date-input">
<ion-label>Date</ion-label>
<ion-text slot="end">{{ dateValue }}</ion-text>
<ion-popover trigger="open-date-input" show-backdrop="false">
<ng-template>
<ion-datetime
#popoverDatetime
presentation="date"
(ionChange)="dateValue = formatDate(popoverDatetime.value)"
></ion-datetime>
</ng-template>
</ion-popover>
</ion-item>
Is there a way to close the popover with the date selection? The standard behavior ist: Choose date and then click somewhere else to close the popover. I want to close it automatically.
Thanks!
1 post - 1 participant