Hi,
I am dragging items external to the scheduler.
The first item creates a new event in the scheduler.
If I drag a second item and drop it on top of the previous item (on the same resource), I combine the data from the new item to the existing event.
To prevent the second item being rendered/added to the scheduler as a new event, when I detect the overlap, I use:
onEventMove: function(args) {
console.log("onEventMove", args);
args.preventDefault();
....
},
However, when I move this 'combined' event within the scheduler, forward/backwards in time or from one resource to another resource, I get the following error:
build.umd.js?b959:2427 Uncaught TypeError: Cannot read property 'removeChild' of null
at DayPilot.Scheduler.ub (daypilot-vue.min.js?0d32:24)
at DayPilot.Scheduler.Mi (daypilot-vue.min.js?0d32:25)
From this point onwards, the scheduler becomes unresponsive and I cannot move any events arround.
This only happens when I attempt to combine events. I can create many 'regular/non-combined' events and move them around afterwards without issue.
Does anybody have an idea of what might be causing this?
Or perhaps a bettwer way of combining events / preventing and overlapping event being added to the calendar as an event?