You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
datepicker: When initializing a datepicker with an empty value and timezone set in in ng-model-options an exception is thrown #12025
TypeError: Cannot read property 'getTimezoneOffset' of undefined
at DatePickerCtrl.onExternalChange (angular-material.js:17694)
at Array.eval (angular-material.js:17181)
at Object.$$format (angular.js:31140)
at Object.$processModelValue (angular.js:31120)
at Object.$$setModelValue (angular.js:31152)
at ngModelWatch (angular.js:31191)
at Scope.$digest (angular.js:19200)
at Scope.$apply (angular.js:19568)
at bootstrapApply (angular.js:1966)
at Object.invoke (angular.js:5208)
at doBootstrap (angular.js:1964)
at bootstrap (angular.js:1984)
at angularInit (angular.js:1869)
at eval (angular.js:36491)
changed the title [-]datepicker: When initializing a datepicker with an empty value and timezone set in in ng-options an exception is thrown[/-][+]datepicker: When initializing a datepicker with an empty value and timezone set in in ng-model-options an exception is thrown[/+]on Oct 5, 2020
Activity
[-]datepicker: When initializing a datepicker with an empty value and timezone set in in ng-options an exception is thrown[/-][+]datepicker: When initializing a datepicker with an empty value and timezone set in in ng-model-options an exception is thrown[/+]Splaktar commentedon Oct 5, 2020
Thank you for the detailed report!
It looks like this is actually caused by
material/src/components/datepicker/js/datepickerDirective.js
Line 1017 in 90d24cf
fix(datepicker): null model with timezone throws exception
fix(datepicker): null model with timezone throws exception