Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Vystii opened this issue Aug 27, 2023 · 0 comments
Open

Comments

@Vystii
Copy link

Vystii commented Aug 27, 2023

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant