kbwood / calendars

jQuery World Calendars Plugin
88 stars 50 forks source link

Uncaught TypeError: year.calendar is not a function #30

Open basselhossam opened 5 years ago

basselhossam commented 5 years ago

I'm getting an error Uncaught TypeError: year.calendar is not a function at GregorianCalendar._validate (jquery.calendars.js:747) at GregorianCalendar.newDate (jquery.calendars.js:429) at GregorianCalendar.fromJSDate (jquery.calendars.js:966) at GregorianCalendar.today (jquery.calendars.js:443) at d.setDate (jquery.calendars.picker.js:1370) at d._attachments (jquery.calendars.picker.js:683) at d._postAttach (jquery.calendars.picker.js:623) at d._postAttach (....\src\js\jquery.plugin.js:37) at d._attach (....\src\js\jquery.plugin.js:198) at HTMLInputElement. (....\src\js\jquery.plugin.js:169)

I'm also using daterangepicker and when I remove it the error is gone so apparently there is a conflict I also find similar problem on stackoverflow on similar problem https://stackoverflow.com/questions/43777269/date-js-conflicting-with-the-keith-wood-calendar-picker

so how can I use this picker along with daterangepicker ?

kbwood commented 5 years ago

What is daterangepicker? The calendars picker already provides the ability to choose a date range. Can you provide a page that shows the problem?