Hello,
I am using the DatePicker component in my application and am getting the error noted in the title. The component works as expected, but I am trying to get rid of the console error. I have copied a portion of the stack trace, which can be found below:
ERROR TypeError: Cannot read property 'getFullYear' of null
at DatePickerComponent.CalendarBase.compareMonth (ej2-calendars.es5.js:1393)
at DatePickerComponent.CalendarBase.iconHandler (ej2-calendars.es5.js:1029)
at DatePickerComponent.CalendarBase.renderTemplate (ej2-calendars.es5.js:825)
at DatePickerComponent.Calendar.renderTemplate (ej2-calendars.es5.js:1574)
at DatePickerComponent.CalendarBase.renderMonths (ej2-calendars.es5.js:535)
at DatePickerComponent.Calendar.renderMonths (ej2-calendars.es5.js:1562)
at DatePickerComponent.CalendarBase.createContentBody (ej2-calendars.es5.js:293)
at DatePickerComponent.CalendarBase.onPropertyChanged (ej2-calendars.es5.js:957)
at DatePickerComponent.Calendar.onPropertyChanged (ej2-calendars.es5.js:1630)
at DatePickerComponent.DatePicker.onPropertyChanged (ej2-calendars.es5.js:2743)
at DatePickerComponent.Base.dataBind (ej2-base.es5.js:1171)
at DatePickerComponent.Component.dataBind (ej2-base.es5.js:5161)
I can provide a larger stack trace if required.
Thanks!