I'm using jquery-ui-contextmenu. The menu stays opened until a mouse click is done elsewhere. I want the menu to close when the mouse leaves it. I tried:
blur: function(event, ui) {
$("#tree").contextmenu("close");
},
but the menu is closed as the mouve leaves the first menu item, so other items can never be selected.
It looks like a very simple need, does somebody know how to do that?