-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar initial value not visible with reactive forms #1226
Comments
Please use rc.3 for correct operation |
I have the same issue with rc.3. loanDate is new Date('2013-06-30') |
I updated to the rc3 today, I can confirm I have the same issue.
Run again my application. |
We are also having issues with the initial date showing blank in the input field. In our case it happens when we have a form group that contains another form group of controls. We want to render the calendar control in a table like this:
The initial date value is not displaying. We cannot use formControlName in this case since we are inside an *ngFor of the subGroup of controls. |
Same behaviour in rc4 |
Verified that this is not fixed in rc4. Still cannot see initial value in the textbox of the p-calendar, but when the calendar drops down. the correct date is selected. |
Hi Guys, html file
ts file
}` Hope this solution helps you all. |
This issue is fixed in rc5. |
I have the same problem with "primeng": "4.2.1" !
Thanks. |
Still seeing this in v5 |
Try converting date to ISO before using it on the form. |
Yes! that that did the trick. 2 hours i'm on this. thanks @milindwmahajan . |
Tenía el mismo problema, solo tuve que hacer esto: con eso ya aparece la fecha en mi p-calendar |
wrap the date format in a square bracket e.g. dateFormat="yy-mm-dd" will be [dateFormat]="yy-mm-dd" |
I having an issue displaying the initial value in a calendar.
My code is like below:
<p-calendar id="startDate" [inline]="false" dateFormat="yy-mm-dd" formControlName="startDate" [(ngModel)]="program.startDate"></p-calendar>
program.startDate is a date not null (startDate: Wed Nov 09 2016 01:00:00 GMT+0100 (Paris, Madrid))
I have blank value on the calendar like below:
When I select another date the date is shown:
I'm using the following version "primeng": "^1.0.0-rc.1" with ultima-ng theme.
Thanks.
The text was updated successfully, but these errors were encountered: