Hello,
I have this html code =>
<ion-item class="input" lines="full">
<ion-text>{{ birthDate.value }}</ion-text>
<ion-button id="open-modal" fill="clear">
<ion-icon name="calendar-outline" slot="icon-only"></ion-icon>
</ion-button>
<ion-modal trigger="open-modal">
<ng-template>
<ion-datetime presentation="date" formControlName="birth_date">
</ion-datetime>
</ng-template>
</ion-modal>
</ion-item>
but When I click on my modal I get this error =>
TypeError: Cannot destructure property 'month' of 'parseDate(...)' as it is undefined.
at Datetime.valueChanged (ion-datetime_3.entry.js:1487:15)
at index-06cd27b1.js:1534:29
at Array.map (<anonymous>)
at setValue (index-06cd27b1.js:1531:34)
at HostElement.set [as value] (index-06cd27b1.js:1571:25)
at SelectValueAccessorDirective.writeValue (ionic-angular.js:44:9)
at onChange (forms.js:1734:1)
at forms.js:2872:1
at Array.forEach (<anonymous>)
at FormControl.setValue (forms.js:2872:1)
I don’t know, where parseDate and month come from…
Do you have an idea please?.
Thanks