CroudTech / vue-fullcalendar

FullCalendar Wrapper for vue
MIT License
483 stars 100 forks source link

Vue Full Calendar Event Select #173

Closed DarkKangaroot closed 6 years ago

DarkKangaroot commented 6 years ago

Hello, can i ask why my event select not trigger properly if there is 2 or more event in event

Thanks.. sample code `

`

BrockReece commented 6 years ago

Hi @Jochii12

I am not sure I understand the question. What does your config object look like?

DarkKangaroot commented 6 years ago

image

image

here my console object.. it return fine but it not rendering in my vuex

DarkKangaroot commented 6 years ago

when i click the time 06: 00 it returning.. but when i click 09: its all null and in the console was fine

Thank you sir

BrockReece commented 6 years ago

I have tried to replicate this in a code sandbox, but it seems to be emitting the @event-selected event for both of my calendar items, as I would expect.

DarkKangaroot commented 6 years ago

i found sir.. one of the date is null so the vuex wont render the object date when is null. what i did is to use lodash and find the id on the array of object to fetch the select details.

const data = _.find(this.appointSched, { id: calEvent.id }) var param = { start: calEvent.start, end: calEvent.end === null ? data.end : calEvent.end, id: calEvent.id, name: calEvent.title }

BrockReece commented 6 years ago

Ok, glad you figured it out.