-
Notifications
You must be signed in to change notification settings - Fork 728
ui-calendar display not updating on change of Event Source Object date - dayClick #219
Comments
I've tried the following :
I've also tried the solution proposed here (didn't work): and the one proposed here (although 'stick = true' is kinda the opposite of what i want on the event really) - didn't work: |
I think i had the same problem. |
I solved my trouble by splicing the array down to nothing and then pushing new values to the same array. The trouble seems to be the calendar using the old memory reference to the initial array. If you replace the array for whatever reason the calendar doesn't update it's memory reference. |
yeah something is still wrong here. Looked into it for a bit, but could not figure it out immediately. Thanks for reporting this @gigmaps, will try to figure it out. if anyone wants to try this one out, that would be great. Thanks. :) |
thanks @dmexs it worked for me! |
My workaround is working fine but may have problems, if you load lots of events.
|
I too had this issue. I traced it down to the following function in dependent js fullCalendar js The fullCalendar function is looking for the value of id in the event object, which does not exist. The reason the remove all work around resolves this issue is because both remove all and add are not dependent upon the legacy filter function below.. function filterLegacyEventInstances(legacyEventInstances, legacyQuery) {
} |
@dmexs thank you. I'm searching for a solution for this problem for the past 4 hours, finally some insights on it! |
For anyone who runs into it that might help:
That what needs to be done:
*Dont forget to inject uiCalendarConfig to the controller Worked for me :) |
When updating calendar using dayClick function to an Event Source Object
the calendar isn't updating - see this SO question http://stackoverflow.com/questions/28100852
This fiddle is with the latest versions and DOES NOT work as expected:
Problem:
This fiddle is with older versions and (for this issue) DOES work as expected
(however it's got an $interpolate issue and is missing a bunch of other functionality relating to colours & background events etc)
The only difference between the two fiddles is the fullcalendar and ui-calendar source code.
Does anyone know of a fix or workaround to have calendar display updated on update of an Event Source Object ?
The text was updated successfully, but these errors were encountered: