Closed ThomasCarca closed 5 years ago
@ThomasCarca Hi, it's designed like that. The event array set to the SchedulerData should be sorted in ascending order by event.start property, otherwise there will be many rendering errors in the Scheduler component.
Hi, thanks for the quick answer. Cool to know it's not a bug. Is it specified somewhere in the docs?
Yes, in the README.md
Ah yes, indeed. Thanks !
Hello ! Thank you very much for this great project, I find it very useful !
I'm running into a bug when overlapping events in a certain order.
Imagine having two events
for the following resource :
Passing the events in the following order works as espected :
[e1, e2]
But if you pass the events in this order :
[e2, e1]
... you can see event B is not rendered. It reappears once you move event e1, though.
I have no idea what could cause this behavior.
A workaround I've found for now that is not ideal is to sort the events by starting date. This seems to resolve the issue.
Here is a Code Sandbox that showcases the issue