How to make a deep-copy of a draggable event onto the scheduler
7 years ago.
Hi,
We have developed a scheduler app using DayPilot Pro and have some draggable events external to the scheduler that we drag on and manipulate. We have built it using Angular and are using the draggable directive from the API to facilitate this. However it seems that the event that is created in the scheduler has a data object that is a shallow copy of the options set in the DayPilot makeDraggable function. So when we modify the event.tags object, it persists changes back to the event.tags object on the draggable element causing a multitude of issues.
Could you please let us know how to change this behaviour to create a true copy of the data on event create?
Thanks
DayPilot