Cannot target calendar api with several instances
See original GitHub issueHi,
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:
- Created 2 years ago
- Reactions:3
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is now fixed in v5.11.1. Updated repro
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