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:

How can I fix it?



Hello @mzardini,
in order to unselect the menu, please try to use onEmptyClick event:
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");) {