Context menu doesn´t hide when i click an option

I´ve a problem, in the context menu of file manager I add an option in the context menu but when i click it, the menu doesn´t hide or destroy, i need to click on other part of the window. But i think so I did it like the example

Here is the code
https://snippet.webix.com/e0c7qtbc

Add something like next into the onItemClick handler

this.getMenu().hide();

https://snippet.webix.com/kwem80ge