You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ion-datetime control within a reactive form with no value set shows 1st of January 2019 (current year) when opened
Expected behavior:
It should default to the current date (this is how it works in Ionic 3)
Steps to reproduce:
See below
Related code:
Here is ion-datetime control inside a reactive form <ion-datetime formControlName="<FIELD_NAME>" pickerFormat="MM/DD/YYYY" displayFormat="DDD, D MMM YYYY"></ion-datetime>
Please note that the control is set to null in the reactive form
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic version:
[x] 4.x
Current behavior:
ion-datetime control within a reactive form with no value set shows 1st of January 2019 (current year) when opened
Expected behavior:
It should default to the current date (this is how it works in Ionic 3)
Steps to reproduce:
See below
Related code:
Here is ion-datetime control inside a reactive form
<ion-datetime formControlName="<FIELD_NAME>" pickerFormat="MM/DD/YYYY" displayFormat="DDD, D MMM YYYY"></ion-datetime>
Please note that the control is set to null in the reactive form
StackBlitz (https://stackblitz.com)
Not possible due to this bug #16354
Ionic info:
The text was updated successfully, but these errors were encountered: