Error on trying to close window

I’m getting an error when I try to close a webix.ui window. Here is an example ( Code Snippet ). I was able to recreate the error in the console.

Any help would be appreciated.

https://webix.com/snippet/7d3d60e5

Thank you! That worked like a charm.

Just a little addition: if you want to show and hide one and the same window for several times, it’s better to use its hide() method instead of close(): https://webix.com/snippet/aaec0a01

Closing destroys a window completely and new instance is created by the next show call. Hiding allows reusing one and the same object.

That is good to know. Thanks!