Events drag and drop problem
See original GitHub issueHi! Today I tried to make droppable events by Draggable plugin. (earlier I did the same at my own Vue-component) What have been done:
- Import plugins:
import interactionPlugin, { Draggable } from '@fullcalendar/interaction';
- Make Interaction plugin available:
calendarPlugins: [ interactionPlugin, timeline ],
- 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:
- Created 4 years ago
- Reactions:2
- Comments:7 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Ok, I’ll try to.
In my case was simple answer: Set
new Draggable (document.getElementById('planned-tasks'))
AFTER you load data, not inmounted
orcreated