-
-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Labels
area: datetimepickerIssues about datetimepickerIssues about datetimepickerquestionFurther information is requestedFurther information is requested
Description
The datetimepicker throws an error after updating to 19.0.1, but only when I programmatically set its value with writeValue. This did not throw when I was on version 18.4.0.
ERROR TypeError: Cannot read properties of undefined (reading 'type')
at _MtxDatetimepickerInput.getDisplayFormat (mtxDatetimepicker.mjs:4490:34)
at _MtxDatetimepickerInput._formatValue (mtxDatetimepicker.mjs:4529:89)
at set value (mtxDatetimepicker.mjs:4370:10)
at _MtxDatetimepickerInput.writeValue (mtxDatetimepicker.mjs:4443:10)
at Object.next (form-field.ts:46:21)
at ConsumerObserver2.next (Subscriber.js:90:25)
at Subscriber2._next (Subscriber.js:59:22)
at Subscriber2.next (Subscriber.js:32:12)
at Subject.js:41:22
at errorContext (errorContext.js:23:5)
I made a minimal repro here: https://stackblitz.com/edit/stackblitz-starters-5yuruzkt?file=src%2Fmain.ts (check the console for the error).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: datetimepickerIssues about datetimepickerIssues about datetimepickerquestionFurther information is requestedFurther information is requested