-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
alpha.18 datepicker is incompatible with Angular 4.0.0-beta.2 #1202
Comments
@alanpurple I'm not sure what is exactly "not working" based on the attached plunker (or rather, what is the problem with material). In the plunker I can see an error thrown when the model is undefined. This happens in Angular 4.0.x only and it seems like this is a breaking change on the Angular side. I'm going to confirm with the core team if this change was intentional or not (and if it was intentional we are going to fix it here). Is this what you are reporting here? |
@pkozlowski-opensource |
@alanpurple are you sure? Asking since I've got a plunk that suggest otherwise: http://plnkr.co/edit/dPJ4QsRPsX6ZLtfXrEdl?p=preview (errors thrown even if material not used) |
@pkozlowski-opensource my bad, sorry |
@maxokorokov there is indeed change from 2.x.y to 4.x.y in the way changes are delivered (see http://plnkr.co/edit/cyWm42UGEaJaaeDK95Eh?p=preview). Having said this |
This is the reference to the Angular commit that (most probably) breaks things for us: angular/angular@465516b Funnily enough it says in the changelog:
It would be good to dig to the bottom of it and eventually open an issue on the Angular side. |
I was going to open a new bug report but it seems it's the same issue as this. Getting the same error if using 4.0.0-beta.3 with the Datepicker popup. Details: Bug description:When using the Datepicker in a popup, it does not work when using model driven forms (i.e. FormGroup, FormBuilder) instead of ngModel. It seems that in ngOnChanges previousValue is accessed even if firstChange is set to true. Error:
Link to minimally-working plunker that reproduces the issue:http://plnkr.co/edit/7z6zTDbYPHUQHO8SmTUR?p=preview Version of Angular, UIBS, and BootstrapAngular: 4.0.0-beta.3 UIBS: 1.0.0-alpha.18 Bootstrap: 4.0.0-alpha.6 |
I've discussed this breaking change with the rest of the Angular team and:
As the result we are going to work-around it here. A fix should land in the next release. |
http://plnkr.co/edit/QnqHUryS3vlu24FwrZoL?p=preview
The text was updated successfully, but these errors were encountered: