Closed AltoDev closed 3 years ago
Ok I found out the problem,
First I removed the [value] from the input, I had no more problem with the datepicker appears and disappeasr but the date data was neverdisplayed in the input after I init it in my form builder
After a little headache I found out out why :
In my date picker option I have
public myDatePickerOptions: IAngularMyDpOptions = {
dateRange: false,
dateFormat: 'dd/mm/yyyy',
minYear: 1930,
maxYear: 2010
};
And my user birth date was : 10/10/2020, so it was not in 1930-2010, but the error message was "invalid date format"
This message was a bit confusing to find the error, but all is Ok now
Sorry if I disturbed you
And thanks for this Datepicker it is very cool and useful
Hello @kekeh, I got a problem with the input field.
I use it in profile edit form, so on init I initialize my form with my user datas, the date is correctly set in the date field but when I click on it to update the value the datepicker appear and disappear instantaneously. The datepicker appear normally after the first fail, it is pretty weird I can figure out why.
Can you help me please ?
here is my template :
Here is my form control init
Thank you in advance
Alex.