ui-calendar icon indicating copy to clipboard operation
ui-calendar copied to clipboard

Error when using new fullcalendar version 3.10.2

Open benneq opened this issue 4 years ago • 0 comments

After upgrading from fullcalendar 3.10.1 to 3.10.2 (Release: https://github.com/fullcalendar/fullcalendar/releases/tag/v3.10.2 ) I get the following error:

TypeError: calendar.fullCalendar is not a function
    at Scope.scope.initCalendar (calendar.js:265)

In angular-ui-calendar 1.0.2 source code it's this line:

scope.initCalendar = function(){
  if (!calendar) {
    calendar = angular.element(elm).html('');
  }
  calendar.fullCalendar(options); // <- THIS LINE
  if(attrs.calendar) {
    uiCalendarConfig.calendars[attrs.calendar] = calendar;
  }          
};

When downgrading to fullcalendar 3.10.1 everything is working again. Only 3.10.2 throws this error.

benneq avatar May 31 '20 20:05 benneq