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?


Unfortunately the problem cannot be reproduced locally.
The following sample works well for me locally:
If the problem still occurs for you please, provide a complete demo or a demo link, where the problem can be reconstructed.