vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views
https://vkurko.github.io/calendar/
MIT License
1.23k stars 108 forks source link

Duplicate calling eventSources.events function in dayGridMonth view #146

Closed dimakovalevskyi closed 1 year ago

dimakovalevskyi commented 1 year ago

Hello!

I use this code to load events dynamically via Ajax:

eventSources: [
  {events: loadEvents}
]

And when the calendar starts with dayGridMonth view, loadEvents function is called twice with different time ranges. This triggers two Ajax requests simultaneously after loading the page and executing js.

image

I think this is a bug. Can be this fixed?

I prepared Demo to show you.

image
vkurko commented 1 year ago

I confirm this is a bug. I'll try to fix it a.s.a.p.

dimakovalevskyi commented 1 year ago

I confirm this is a bug. I'll try to fix it a.s.a.p.

Thank you a lot!

vkurko commented 1 year ago

This should be fixed in v1.4.1. Please check.

dimakovalevskyi commented 1 year ago

I confirm the bug is fixed. Thank you! I will close issue.