onBeforeEventChange - same data in ev object and original object


#1

Hello, can you point me what could be wrong - beacase I’ve the same data attribute while resizing event. I.E end_date is the same even if I change it by resizing event “box”

onBeforeEventChanged.value = scheduler.attachEvent(“onBeforeEventChanged”, (ev: any , e: any , is_new: boolean , original: any ) => {

console.log(ev.end_date + " ++++ " + original.end_date);
}


#2

Hello @pawelktr ,

If you mean, that event doesn’t change after the drag operation ends, it occurs because you don’t return true from the onBeforeEventChanged event, so it’s blocked, in this case, you can change the code to the following one:

onBeforeEventChanged.value = scheduler.attachEvent(“onBeforeEventChanged”, (ev: any , e: any , is_new: boolean , original: any ) => {

console.log(ev.end_date + " ++++ " + original.end_date);
return true;
}

and the issue will be solved.

If you mean, that both values, from the original and ev are the same, it’s hard to suggest why it occurs in your case. I tried to reproduce it on my end, but both values are correct:
https://recordit.co/JbfXQHkyIv

If you meant something different, could you please clarify your question?