ContextMenu doesn't disappear

If you open the context menu (right-click), then you click on other part (an example change view), the menu doesn’t disappear, it remains until you right-click again on another task.
It happens also in the demo:
https://docs.dhtmlx.com/scheduler/samples/10_integration/01_dhtmlxmenu.html

How can I fix it?

Cheers
Matteo

Hello @mzardini,
in order to unselect the menu, please try to use onEmptyClick event:
https://docs.dhtmlx.com/scheduler/api__scheduler_onemptyclick_event.html
Please, inside the handler check if the menu is selected and if it is true, use unselect method to hide it:

scheduler.attachEvent("onEmptyClick", function (date, e){
if(menu.isSelected("id");) {
menu.unselect();
}
});