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
I found this error try to show a multidatespicker:
core.js:1673 ERROR TypeError: Cannot read property 'defaultDate' of undefined
at s._get (jquery-ui.min.js:9)
at s._getDefaultDate (jquery-ui.min.js:9)
at s._inlineDatepicker (jquery-ui.min.js:8)
at s._attachDatepicker (jquery-ui.min.js:8)
at HTMLDivElement. (jquery-ui.min.js:9)
at Function.each (jquery.js:374)
at n.fn.init.each (jquery.js:139)
at n.fn.init.t.fn.datepicker (jquery-ui.min.js:9)
at HTMLDivElement.init (jquery-ui.multidatespicker.js:154)
at HTMLDivElement. (jquery-ui.multidatespicker.js:461)
My TypeScript:
var today = new Date();
var y = today.getFullYear();
var holidays = [];
holidays = data.holidays[0].Holidays.split(",");
console.log(holidays);
$("#holidayscalendar").multiDatesPicker({
addDates: holidays,
numberOfMonths: [4,3], // 4 rows of 3 columns each = 12 months
defaultDate: '1/1/'+y, // First day of the Calendar
firstDay: 1 // Start with Monday
});
I found this error try to show a multidatespicker:
core.js:1673 ERROR TypeError: Cannot read property 'defaultDate' of undefined
at s._get (jquery-ui.min.js:9)
at s._getDefaultDate (jquery-ui.min.js:9)
at s._inlineDatepicker (jquery-ui.min.js:8)
at s._attachDatepicker (jquery-ui.min.js:8)
at HTMLDivElement. (jquery-ui.min.js:9)
at Function.each (jquery.js:374)
at n.fn.init.each (jquery.js:139)
at n.fn.init.t.fn.datepicker (jquery-ui.min.js:9)
at HTMLDivElement.init (jquery-ui.multidatespicker.js:154)
at HTMLDivElement. (jquery-ui.multidatespicker.js:461)
My TypeScript:
and imported in index.html
I cannot see anything in the application, and receive the error.
The text was updated successfully, but these errors were encountered: