Scheduler -Not able to create event in month view

Hi,

I am using angular app with dhmlx scheduler 6.0.4 (latest npm package).
I have set collision plugin as true in config to prevent creating events in the same time. So , whats happening is, if I go to a month view and create an event ( with the default start and end date , which is 12:00 - 12:05. basically not changing anything in the lightbox values), it creates an event. Then again if I click the same date to create another event for a diff slot, the lightbox does not even open because it tries to open with the default startdate/enddate and an event already exists there. So this is not letting me to create event in any other time slot. I was able to reproduce this in one of your sample also.

I posted this issue already and a work around has been shared by you. Now I updated to version 6.0.5. And the issue still exists.

Hello @rajeswarij,

It’s known case, and the dev team is still considering the best approach to fix it. Currently it still can be fixed with the following workaround:

scheduler.attachEvent("onEventCreated", function(id,ev){
    let mode = scheduler.getState().mode; 
    if(mode == "month"){
        let event = scheduler.getEvent(id)
        event.disableCollisionCheck = true;
    }
});

scheduler.attachEvent("onEventSave",function(id,ev,is_new){
    let mode = scheduler.getState().mode; 
    if(mode == "month" && ev.disableCollisionCheck){
        // remove the unnecessary property
        ev.disableCollisionCheck = false;
    }
    return true;
})

scheduler.attachEvent("onEventCollision", function (ev, evs){
    let mode = scheduler.getState().mode; 
    if(mode == "month" && ev.disableCollisionCheck){ 
        return false;
    } else {
        alert("The time is occupied")
        return true;
    }
});

Kind regards,