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.

Events drag and drop problem

See original GitHub issue

Hi! Today I tried to make droppable events by Draggable plugin. (earlier I did the same at my own Vue-component) What have been done:

  1. Import plugins: import interactionPlugin, { Draggable } from '@fullcalendar/interaction';
  2. Make Interaction plugin available: calendarPlugins: [ interactionPlugin, timeline ],
  3. Create Draggable object: new Draggable(document.getElementById('planned-tasks'), { itemSelector: '.fc-event', eventData: function(eventEl) { return { title: eventEl.innerText, duration: "02:00" }; } });

But when I drop event on calendar - nothing happens, like when Draggable.eventData returns object with create:false attribute. I also have problem with dragging events inside of calendar, when I try to drag event - nothing happens. And no errors in console in both cases. Only event resize works fine. Is it problem with InteractionPlugin support or something?

P.S.: just in case I restart my browser before sending an issue =)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
bulletbscommented, Apr 25, 2019

Strange thing. In CodeSandBox it’s works fine https://codesandbox.io/s/n9x732zyrj But when I put this component in my application - problem is still there.

Can you make a reduced test case? this debugging template will help as a starting point: https://codesandbox.io/s/8xyz32l0r8

https://fullcalendar.io/reduced-test-cases

Ok, I’ll try to.

1reaction
yujin1stcommented, Dec 10, 2021

In my case was simple answer: Set new Draggable (document.getElementById('planned-tasks')) AFTER you load data, not in mounted or created

Read more comments on GitHub >

github_iconTop Results From Across the Web

Drag'n'Drop with mouse events - The Modern JavaScript Tutorial
Use event delegation to track drag start: a single event handler on document for mousedown . If elements are dragged to top/bottom window...
Read more >
The Biggest Problem With Drag And Drop File Upload, And ...
The ondragover event specifies the location where the user can drop dragged data. By default, Data/elements cannot be dropped into other ...
Read more >
Windows Drag and Drop Not Working – A Few Easy Fixes
A drag operation is started by using the MouseDown event since it is the most intuitive. Don't forget that any event can activate...
Read more >
Drag & Drop events are not working | WinForms Forums
Hi, I am trying to save current column order & column size on DragAndDrop event however this event is not getting fired.
Read more >
Trouble Moving Events (via Drag-Drop) Suddenly
Clear your browser's cookies and cache. Try a different web browser (Chrome, Internet Explorer, Safari). Disable all the extensions on your browser. If...
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