-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Datepicker breaks after upgrading to angular 1.6.0-rc.1 or 1.6.0-rc.2 #10070
Comments
same issue on Linux Browser Type: * Firefox, Chrome |
same issue with Angular v.1.6.0 (stable) on Chrome 55.0.2883.75 m |
Having the same issue. I've started looking into it, but unfortunately my angular skills are somewhat limited. From what I can tell, the problem occurs in calendarMonthBody.js, on the code block included below It looks like offset and oldOffset are always equal when using angular 1.6. Will continue looking into this, but thought I'd drop it here in case it is useful for anyone else.
Edit: If I'm correct in the above, then it looks like this is fixed in master, thanks to this commit. |
Angularjs has released 1.6.1-build.5199+sha.7f8bc58, did anyone test datepicker on this version? |
@rupalchawla We should have fixes those issues on Going to track this issue with #10111 |
I can confirm issue persists in angularjs v1.6.1 with angular-material v1.1.1 edit: I use both stable releases. |
http://angularjs.blogspot.com/2016/12/angular-material-beta-release-new-flex.html
Before it happens use this code: angular.module('myApp', [])
.config(function($compileProvider) {
$compileProvider.preAssignBindingsEnabled(true);
}) with |
thanks @rudzikdawid this works! |
@rudzikdawid that works on angular-material v1.1.1 stable with angularjs v1.6.1 stable |
This is just a workaround and not a fix though. |
angular.module('myApp', []).config(function($compileProvider) {
$compileProvider.preAssignBindingsEnabled(true);
}).config(['$qProvider', function ($qProvider) {
$qProvider.errorOnUnhandledRejections(false);
}]); |
Thanks this works for me. |
Actual Behavior:
What is the issue? *
Angular 1.6.0-rc.1 and 1.6.0-rc.2 breaks datepicker. Datepicker opens up with an empty placeholder where the dates should be. After scrolling up for a while, dates starts appearing.
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:
http://codepen.io/madani/pen/ENbPMp
click on any of the Datepickers on the page to see the issue for yourself.
Angular Versions: *
Angular Version: 1.6.0-rc.1 and 1.6.0-rc.2
Angular Material Version: 1.1.1
Additional Information:
Browser Type: * Firefox, Chrome
Browser Version: * Firefox: 50.0.1, Chrome: 54.0.2840.98
OS: * Mac OS X 10.12.1
The text was updated successfully, but these errors were encountered: