Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Error when using new fullcalendar version 3.10.2 #546

Open
benneq opened this issue May 31, 2020 · 0 comments
Open

Error when using new fullcalendar version 3.10.2 #546

benneq opened this issue May 31, 2020 · 0 comments

Comments

@benneq
Copy link

benneq commented May 31, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant