vue-fullcalendar icon indicating copy to clipboard operation
vue-fullcalendar copied to clipboard

Event sort order in safari is different from other browsers

Open ryutoyasugi opened this issue 7 years ago • 1 comments

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.

  • macOS Sierra 10.12.4
  • Safari 10.1
  • Chrome 58.0.3029.96
  • FireFox 53.0.2

ryutoyasugi avatar May 08 '17 05:05 ryutoyasugi

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

peterchealse avatar Jun 21 '17 02:06 peterchealse