question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot target calendar api with several instances

See original GitHub issue

Hi,

I tried to add 3 different calendars to play a swipe animation but encountered an issue. When I have multiple Fullcalendar instances I can only get the last calendar API.

Given the next three instances :

<FullCalendar
  ref="previous"
  class="calendar"
  :options="calendarOptions"
/>

<FullCalendar
  ref="current"
  class="calendar"
  :options="calendarOptions1"
/>

<FullCalendar
  ref="next"
  class="calendar"
  :options="calendarOptions2"
/>

The next three lines will return the same api (the one for the ‘next’ instance).

const calendar1 = this.$refs.previous.getApi();
const calendar2 = this.$refs.current.getApi();
const calendar3 = this.$refs.next.getApi();

The bug only appears with fullcalendar/vue3 (not vue2 version) Sand box : https://codesandbox.io/s/fullcalendar-vue3-multiple-instances-forked-1ss6e?file=/src/components/Calendar.vue

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
arshawcommented, May 10, 2022

This is now fixed in v5.11.1. Updated repro

1reaction
rmorenohernandezcommented, May 6, 2022

Hi,

is there any fix for this issue? Currently, it is not possible to get the correct fullcalendar instance through getApi() method when using Vue3 and there are multiple instances of FullCalendar components.

Thanks in advance

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to create Google API Calendar Events (object ...
I am attempting to retrieve a list of Google Calendar Events via the .NET v3 Calendar API. The following code seems correct, but...
Read more >
Recurring events | Google Calendar
In order to change all the instances of a recurring event on or after a given (target) instance, you must make two separate...
Read more >
Avoid Calendar use limits - Google Workspace Admin Help
Google sets use limits to protect Google Calendar users, admins, and organizations from abusive behavior. If a user in your organization performs an...
Read more >
How to Use the Google Calendar API - Zapier
Google Calendar is one of the most popular ways to manage events, meetings, holidays, and anything else you need to schedule.
Read more >
[DEPRECATED] Outlook Calendar REST API reference ...
Calendar operations. A calendar serves as a container for events. A user can have multiple calendars. In Office 365, each calendar can be ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found