- Why is the datepicker always expanded, instead of showing the placeholder like in the demo?
- How can I make the “required” attribute work with ion-datetime just like ion-input?
Regarding #1: I’m using the beta6 and am just copying from the datetime example source code.
Instead of looking like “Appt Date [Select Date]” as shown in the demo, in my app the calendar is fully opened to month+time selector. How can I make it show just the placeholder text, initially?
<ion-item> <ion-label position="floating">Appt Date</ion-label> <ion-datetime formControlName="apptDate" presentation="date-time" placeholder="Select Date" required></ion-datetime> </ion-item>
Regaring #2, if I submit my form without changing the initial date then it still seems to take. I’m not sure if this is related to the popup always being open.
Attachment of just pasting the Ionic demo into a blank page - showing the first datepicker already open.