This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
datepicker: 1.1.23 does not work with $mdDateLocaleProvider #11945
Description
Bug, enhancement request, or proposal
Demo and steps to reproduce the issue
Demo URL (required)*:
- Angular 1.1.22 - datepicker & mdDateLocaleProvider
- Angular 1.1.23 - datepicker & mdDateLocaleProvider
Detailed Reproduction Steps
- use a datepicker component
- use a $mdDateLocaleProvider service with a custom date format
Explain the expected behavior
Datepicker should work in version 1.1.23 with custom date formats. The behavior should be the same as in version 1.1.22
Explain the current behavior
The user can't select a date from the date picker. Errors are show in the console view.
Discuss the use-case or motivation for changing the existing behavior
List the affected versions of AngularJS, Material, OS, and browsers
- AngularJS Material: 1.1.23
- Browsers: Chromium, Firefox
Add anything else we should know
Stack Trace
TypeError: Cannot read property 'getTime' of null
at Object.ngModelCtrl.$render (angular-material.js:14743)
at Object.$processModelValue (angular.js:31125)
at Object.$$setModelValue (angular.js:31152)
at ngModelWatch (angular.js:31191)
at Scope.$digest (angular.js:19200)
at Scope.$apply (angular.js:19568)
at HTMLButtonElement.<anonymous> (angular.js:29023)
at defaultHandlerWrapper (angular.js:3891)
at HTMLButtonElement.eventHandler (angular.js:3879)
(anonymous) @ angular.js:15635
(anonymous) @ angular.js:11914
$digest @ angular.js:19226
$apply @ angular.js:19568
(anonymous) @ angular.js:29023
defaultHandlerWrapper @ angular.js:3891
eventHandler @ angular.js:3879
angular.js:15635 TypeError: Cannot read property 'getTime' of null
at Object.ngModelCtrl.$render (angular-material.js:14743)
at CalendarMonthCtrl.initialize (angular-material.js:15138)
at Object.link (angular-material.js:15047)
at angular.js:1391
at invokeLinkFn (angular.js:11334)
at nodeLinkFn (angular.js:10653)
at compositeLinkFn (angular.js:9900)
at publicLinkFn (angular.js:9765)
at lazyCompilation (angular.js:10179)
at boundTranscludeFn (angular.js:9943) "<md-calendar-month ng-switch-default="" class="ng-scope">"
(anonymous) @ angular.js:15635
(anonymous) @ angular.js:11914
invokeLinkFn @ angular.js:11336
nodeLinkFn @ angular.js:10653
compositeLinkFn @ angular.js:9900
publicLinkFn @ angular.js:9765
lazyCompilation @ angular.js:10179
boundTranscludeFn @ angular.js:9943
controllersBoundTransclude @ angular.js:10703
(anonymous) @ angular.js:34679
forEach @ angular.js:388
ngSwitchWatchAction @ angular.js:34678
$digest @ angular.js:19208
$apply @ angular.js:19568
(anonymous) @ angular.js:29023
defaultHandlerWrapper @ angular.js:3891
eventHandler @ angular.js:3879
angular.js:15635 TypeError: Cannot read property 'getTime' of null
at Object.ngModelCtrl.$render (angular-material.js:14743)
at CalendarCtrl.setNgModelValue (angular-material.js:14778)
at angular-material.js:15096
at Scope.$eval (angular.js:19461)
at Scope.$apply (angular.js:19560)
at HTMLTableCellElement.CalendarMonthCtrl.cellClickHandler (angular-material.js:15095)