Wanderxx / vue-fullcalendar

vue calendar fullCalendar. no jquery required. Schedule events management
https://wanderxx.github.io/vue-fullcalendar/
1.51k stars 387 forks source link

Event sort order in safari is different from other browsers #47

Open ryutoyasugi opened 7 years ago

ryutoyasugi commented 7 years ago

safari screen shot 2017-05-08 at 14 17 37

other browsers screen shot 2017-05-08 at 14 18 28

The cause seems to be that the argument order of the Array.prototype.sort() is different between safari and other browsers.

vue-fullcalendar.js(v1.0.9):634

thisDayEvents.sort(function (a, b) {
  if (!a.cellIndex) return 1;
  if (!b.cellIndex) return -1;
  return a.cellIndex - b.cellIndex;
});

My environment is below.

peterchealse commented 7 years ago

the same problem, just add the cellIndex... start from 1