vue-fullcalendar
vue-fullcalendar copied to clipboard
Event sort order in safari is different from other browsers
safari
other browsers
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.
- macOS Sierra 10.12.4
- Safari 10.1
- Chrome 58.0.3029.96
- FireFox 53.0.2
the same problem, just add the cellIndex... start from 1