Skip to content
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

1.6.7 not working on Angular 1.5.9 #114

Open
ptitdam2001 opened this issue Jul 24, 2017 · 2 comments
Open

1.6.7 not working on Angular 1.5.9 #114

ptitdam2001 opened this issue Jul 24, 2017 · 2 comments

Comments

@ptitdam2001
Copy link

Hi,

My application is on angular 1.5.9 and it is not working, I have that message :

TypeError: Cannot read property 'createChild' of null at Object.link (webpack:///./node_modules/ng-material-datetimepicker/js/angular-material-datetimepicker.js?:160:50) at eval (webpack:///./node_modules/angular/angular.js?:1259:18) at eval (webpack:///./node_modules/angular/angular.js?:10089:44) at invokeLinkFn (webpack:///./node_modules/angular/angular.js?:10095:9) at nodeLinkFn (webpack:///./node_modules/angular/angular.js?:9492:11) at compositeLinkFn (webpack:///./node_modules/angular/angular.js?:8757:13) at nodeLinkFn (webpack:///./node_modules/angular/angular.js?:9486:11) at compositeLinkFn (webpack:///./node_modules/angular/angular.js?:8757:13) at nodeLinkFn (webpack:///./node_modules/angular/angular.js?:9486:11) at compositeLinkFn (webpack:///./node_modules/angular/angular.js?:8757:13) <input mdc-datetime-picker="" date="true" time="true" type="text" format="{{$ctrl.datePickerConfig.format}}" min-date="$ctrl.datePickerConfig.minDate" ng-model="$ctrl.form.validation_at" cancel-text="{{'datepicker.cancel' | translate}}" today-text="{{'datepicker.today' | translate}}" ok-text="{{'datepicker.ok' | translate}}" week-start="$ctrl.datePickerConfig.weekStart" class="ng-pristine ng-untouched ng-valid ng-isolate-scope">

To fix that bug, you should replace at line 160 with below :

var ngModelOptions = {'*': '$inherit', debounce: 500};
ngModel.$options = ngModel.$options ? ngModel.$options.createChild(ngModelOptions) : ngModelOptions;

=> beenote#14

@hexadecy
Copy link

hexadecy commented Jul 24, 2017

Affect only the more advanced fork.
Fixed in 1.7.1

@ptitdam2001
Copy link
Author

Good for me! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants