antoniandre / vue-cal

A Vue.js full calendar, no dependency, no BS. :metal:
https://antoniandre.github.io/vue-cal/
MIT License
1.24k stars 238 forks source link

returning false on event-drag-create but the event creation is not rejected #551

Open Vystii opened 1 year ago

Vystii commented 1 year ago

Hello. I've created a function that return false to the on the event-drag-create so I can freely manipulate the event I want to create but event creation is not canceled so the event I tried to create is rendered. here is the template part: <VueCal v-bind="planningConfigs" :events="calendarEvents" :on-event-click="onEventClick" @event-drag-create="createEvent" /> My function looks like: const createEvent = (event: Events, e: any) => { emit('changeFormState', true); emit('addEvent', event); return false; }