asked
2020-04-20 21:07:28 +0800
rsheth 103 ● 2 Hello All,
I'm using ZK CE-9.0.0 & zk-calendar-2.1.5 source code.
I'm handling the event onEventCreate
of calendars
, to create new events in the calendar. Whenever I'm doing so, an event ghost/dragging ghost is also created. Please refer to the below screenshot.

I want to get rid of this event ghost. I achieve this by executing the following piece of code placed inside the event handling method:
@Listen("onEventCreate = #calendars")
public void createEvent(CalendarsEvent event) {
event.clearGhost();
}
Although this code works, the event ghost still appears for half a second. While I want that this event ghost doesn't appear on screen at all.
How can I achieve the same?
Thanks.