view menu use plugin menu cant change subview when use submenu

I have a menu like this link. I use webix jet to change subview.
https://snippet.webix.com/rmehl2mi

init Menu i use
this.use(plugins.Menu, “top:menu”)

Menu plugin uses onAfterSelect event on menu widgets.
but only top menu can be selected.
try this as workaround

  on:{
    onMenuItemClick: function(id){
      let subMenu = this.getMenu(id);
      if(subMenu !== this){
        this.callEvent("onAfterSelect", [id]);
      }
    }
  }

https://snippet.webix.com/jcx8avsr

Ur way is good. intregal.

After select once menu, why isn’t it toggle the button like layout:“y”

https://snippet.webix.com/jcx8avsr