Context Menu Problems

Hi, is there a way to close on out of focus a context menu?
It closes only if a menu voice was pressed.
Plz, is there a way?

Thanks

Unfortunately the problem cannot be reproduced locally.
The following sample works well for me locally:
https://docs.dhtmlx.com/suite/samples/menu/01_init/02_init_context_menu.html
If the problem still occurs for you please, provide a complete demo or a demo link, where the problem can be reconstructed.