-
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 - when using monthNavigator/yearNavigator and binding a date - current month/year is based on today vs. the bound date #6261
Comments
I encountered this issue too. Current behavior Expected behavior Minimal reproduction of the problem with instructions Please tell us about your environment: Angular version: 6.1 |
Duplicate of: 6209 |
Duplicate |
If you close this one, then please open #6209. This issue is not resolved. |
Replicated |
Does it work as intended? I've created https://stackblitz.com/edit/angular-ffnp7w with version 6.1.2.
|
Did you get fix or workaround for this issue? Please let me know |
Try adding [defaultDate]="date" to your html. Provided, date will be the value same as that of ngModel |
@alanjosephk Thanks, this is working. |
Latest version 6.1.0
I have a control, ie.
When I use [monthNavigator]="true" [yearNavigator]="true" and bound a date - let's say today is August 2018 but the formControlName value is December 2017.
When opening the calendar, the date is in the dropdown is 'August' '2018' instead of 'December 2017'
If I remove the [monthNavigator]="true" [yearNavigator]="true" then it functions correctly.
The text was updated successfully, but these errors were encountered: