search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

onEventClick not fired after call to preventDefault in onEventMove

Asked by Anonymous
9 months ago.

Hi,

I’m using the scheduler component of Daypilot Pro Angular version 2023.3.5716 in an angular 14 app. The component is amazing but I think there is a bug with onEventMove callback :

I have some async validation to check if an event can be resized or moved.

I followed your documentation and I set args.sync = true and I call args.preventDefault() to prevent event update if necessary and args.loaded() when validation is finished.

However when args.preventDefault() is called in onEventMove callback, the scheduler does not emit click event anymore (onEventClick and onEventClicked are not executed). I must move an element with an allowed move to get click events from the scheduler back.

This bug is not present when I do resize validation in onEventResize with the same code. Click events are always correctly fired in my case after resize validation.

Please let me know if you need more information.

Thank you in advance for your help !

Answer posted by Dan Letecky [DayPilot]
9 months ago.

I confirm the bug - it should be fixed now in the latest sandbox build (2023.3.5728):

https://release.daypilot.org/changes/js/

Please let me know if the problem persists.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.