question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cancel drag event from eventDragStart callback

See original GitHub issue

I need to check some criteria in “eventDragStart” callback and if criteria doesn’t match then I need to cancel the drag event completely in “eventDragStart” callback itself, so event can’t be moved at all.

Unfortunately, canceling of drag event isn’t working with “eventDragStart” callback.

so something like this:

eventDragStart: function( event, jsEvent, ui, view ) { 
    // this would not allow event to be dragged
    if (bFlag) {
       return false;
    }
}

Can someone help me to cancel the drag-drop of event in “eventDragStart” callback?

I am using fullcalendar 3.7.0

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:11
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
mashinaxcommented, Nov 19, 2018

any updates regarding the “the ability to return false and cancel…” - I need this option for viewRender…

2reactions
HDingercommented, Jan 20, 2022

Are there any news on this? Being able to cancel the drag is an essential functionality. Most users expect the drag to be cancelled when pressing ESCAPE and are wondering why nothing happens.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modify events properties inside a eventDragStart callback
When the user starts dragging an appointment, the time slots which accepts this appointment's type should turned into green. And the time slots ......
Read more >
eventDragStop - Docs - FullCalendar
Triggered when event dragging stops. ... This callback is guaranteed to be triggered after the user drags an event, even if the event...
Read more >
src/Swappable/Swappable.js - Draggable - Shopify
The JavaScript Drag & Drop library your grandparents warned you about. ... @param {DragStartEvent} event - Drag start event; */; [onDragStart](event) ...
Read more >
@event-calendar/list - npm
eventDragStart. Type function; Default undefined. Callback function that is triggered when the event dragging begins. function (info) { }.
Read more >
Jquery – Fullcalendar drag and drop allday - iTecNote
I want to disable the allDay-events from being able to be dragged into normal ... event in a variable at drag-start (through the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found