this.ui() in $subview

Need help with popup in $subview.
I create popup menu in top view

class TopView extends JetView {

init(view){
this.ui(Menu)
}
}
then i can open it with {view: “icon”, icon: “th”, popup: “popup_menu”} by id
but when switch to external view with TopView as subview it not working.

https://snippet.webix.com/6zwry5rt

as you create Menu view on TopView init, it is disposed on TopView dispose. but dispose is delayed. thus it is disposed prematurely on second init.
to prevent it you can use webix.delay like webix.delay(this.ui, this, [Menu]);