scoutforpets / ember-fullcalendar

An Ember Component for FullCalendar and FullCalendar Scheduler
MIT License
39 stars 45 forks source link

Component doesn't setup the given date as highlighted correctly #70

Open danielreis00 opened 6 years ago

danielreis00 commented 6 years ago

Trying to pass the date as moment('2017-11-22', 'YYYY-MM-DD'), moment('2017-11-22') or just '2017-11-22 for example, doesn't work, it always setup the today date as highlighted date. Also changing the passed variable to a new date after an eventClick also doesn't change the highlighted day.

Is it a bug indeed, or am I passing a wrong format?

Code example:

{{full-calendar 
    date=model.data.date
    events=model.data.events 
    eventClick=(action model.actions.eventClick)
    eventAfterAllRender=(action model.actions.eventAfterAllRender)
  }}

Where model.data.date is the dates I mentioned before

Or isn't it suppose to highlight the passed date in the calendar, just the today date?

b0r1sp commented 5 years ago

@danielreis00 did you solve this problem? I'm facing a similar problem, consider to build my own fullcalendar component because of that

jamesdixon commented 5 years ago

I haven't had a chance to look at the issue.

@b0r1sp instead of building your own, you could just submit a PR to fix the issue 😁