- Randomly Ui stuck in time picker.
- When i am open time picker many times randomly stuck in 12 AM time and The time not displaying patched value or current time value.
Gif reference
Below is my html code:
`<ion-modal [trigger]=”triggerId”>
<ion-datetime [value]=”selectedDate” #dateTimePicker [presentation]=”presentation” [min]=”minValue”
[max]=”maxValue” (ionChange)=”onChange($event)”>
<ion-text (click)=”dismiss()”>Close
`
Below is my ts code:
@ViewChild(IonModal) modal: IonModal;
onChange($event) {
this.displayValue = // convert time stamp time event to AM/PM formate
}
dismiss() {
this.modal.dismiss();
}
I tryed in ionic 6 and 7 but have randomly stucking in ion-datetime picker 12:00 AM.
New contributor
kabil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.