-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method addEvent bug #124
Comments
@IndyHendrickx Thanks for reporting the bug. This behavior is due to some optimizations, when the internal event storage is updated not in the main task, but in the microtask. I'll provide a fix a.s.a.p. |
@vkurko thank you so much! In the main time I have worked around this problem, by writing this helper function:
So take your time to provide a fix, coding in a hurry is never good! And again, thank you for all the hard work! |
This should be fixed in v1.1.1. Please check. |
I hope I can close this issue. |
I have encountered an issue with the addEvent method in my code. Here is the code snippet that I am using:
When I run this code, I expect the getEventById method to return the event that I just added with the ID '1' (when adding data index 1!). However, this is not working as expected. After adding all events to the calendar, I attempted to print the events for the calendar instance. However, calendar.getEvents() returns an empty array, even though the getOption("events") method shows that the events were added to the options.
It seems like the addEvent method is only adding the events to the DOM and the events property of the calendar instance. I appreciate any help or guidance on this issue. Thank you for the hard work put into this project, it is really impressive!
The text was updated successfully, but these errors were encountered: