ionic-framework
ionic-framework copied to clipboard
<ion-datetime> doesn't play well with other elements in <ion-item>
I want to use ion-datetime inside an ion-item, but I want to include other elements as well for picking the days of the week.
Goal:

If I use the ion-item markup, then this is what I get:

To get around this issue, I have to change ion-item to div with position:relative. But now I lose out on swipe to delete etc.
Preferred Markup:
<ion-item *ngFor = "let reminder of reminders">
<ion-datetime displayFormat="h:mm a" pickerFormat="h mm a" [(ngModel)]="reminder.time"></ion-datetime>
<select-days-from-week [schedule] = "reminder.schedule"></select-days-from-week>
</ion-item>
Which Ionic Version? 2.x
Hello! Thanks for opening an issue with us! As this seems like more of a support question of how to implement custom functionality i will urge that you ask this question on our forum (forum.ionicframework.com). Thanks for using Ionic!