Hi Dan,
Thanks for your reply. I actually tried to do this before but it didn't work. Let me further explain the issue.
1. My context menu is attaching the contextmenu event to the document.
2. Daypilot scheduler is attaching it to the event dom element.
3. If I prevent the default action in onEventRightClick , the event won't bubble to the document, the event won't fire and my context menu won't show.
4. And if I tried calling eventElement.trigger('contextmenu'), this would keep calling onEventRightClick causing an infinite loop.
5. I could get my context menu to appear if I attached it to an element higher in the dom (e.g body) but this is not what I want. I want it to be triggered on events only
So, what I am looking for is to cancel the handling of the contextmenu event completely from daypilot. Can this be done?