ADM-dateTimePicker
ADM-dateTimePicker copied to clipboard
Typing a date, when no default date is specified generates the error "Cannot read property 'unix' of undefined"
Hi,
I have the following scenario:
If I type a date instead of selecting one from the picker, it gives me the following error:
Cannot read property 'unix' of undefined
at m.t.modelChanged (ADM-dateTimePicker.min.js:11)
at fn (eval at compile (angular.js:14138),
Tks.
Jefferson
I got that error too. Workaround: init the fulldata property
<adm-dtp ng-model="date" full-data="date_details"></adm-dtp>
in js, init the date_details property (doesn't need to be real values)
date_details = {
formated: "",
gDate: "",
unix: 0,
year: 0,
month: 0,
day: 0,
hour: 0,
minute: 0,
minDate: null,
maxDate: null,
calType: "gregorian",
format: "DD/MM/YYYY"
}